Merge branch 'master' into next
* master: git-svn: fix commit --edit flag when using SVN:: libraries Makefile: do not force unneeded recompilation upon GIT_VERSION changes Check and document the options to prevent mistakes. Pass -DDEFAULT_GIT_TEMPLATE_DIR only where actually used.
This commit is contained in:
@ -24,9 +24,16 @@ OPTIONS
|
|||||||
-------
|
-------
|
||||||
The options available are:
|
The options available are:
|
||||||
|
|
||||||
|
--bcc::
|
||||||
|
Specify a "Bcc:" value for each email.
|
||||||
|
|
||||||
|
The --bcc option must be repeated for each user you want on the bcc list.
|
||||||
|
|
||||||
--cc::
|
--cc::
|
||||||
Specify a starting "Cc:" value for each email.
|
Specify a starting "Cc:" value for each email.
|
||||||
|
|
||||||
|
The --cc option must be repeated for each user you want on the cc list.
|
||||||
|
|
||||||
--chain-reply-to, --no-chain-reply-to::
|
--chain-reply-to, --no-chain-reply-to::
|
||||||
If this is set, each email will be sent as a reply to the previous
|
If this is set, each email will be sent as a reply to the previous
|
||||||
email sent. If disabled with "--no-chain-reply-to", all emails after
|
email sent. If disabled with "--no-chain-reply-to", all emails after
|
||||||
@ -76,6 +83,8 @@ The options available are:
|
|||||||
Generally, this will be the upstream maintainer of the
|
Generally, this will be the upstream maintainer of the
|
||||||
project involved.
|
project involved.
|
||||||
|
|
||||||
|
The --to option must be repeated for each user you want on the to list.
|
||||||
|
|
||||||
|
|
||||||
Author
|
Author
|
||||||
------
|
------
|
||||||
|
|||||||
5
Makefile
5
Makefile
@ -470,7 +470,6 @@ PYTHON_PATH_SQ = $(subst ','\'',$(PYTHON_PATH))
|
|||||||
GIT_PYTHON_DIR_SQ = $(subst ','\'',$(GIT_PYTHON_DIR))
|
GIT_PYTHON_DIR_SQ = $(subst ','\'',$(GIT_PYTHON_DIR))
|
||||||
|
|
||||||
ALL_CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER_SQ)' $(COMPAT_CFLAGS)
|
ALL_CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER_SQ)' $(COMPAT_CFLAGS)
|
||||||
ALL_CFLAGS += -DDEFAULT_GIT_TEMPLATE_DIR='"$(template_dir_SQ)"'
|
|
||||||
LIB_OBJS += $(COMPAT_OBJS)
|
LIB_OBJS += $(COMPAT_OBJS)
|
||||||
export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
|
export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
|
||||||
### Build rules
|
### Build rules
|
||||||
@ -546,6 +545,8 @@ git$X git.spec \
|
|||||||
|
|
||||||
exec_cmd.o: exec_cmd.c GIT-CFLAGS
|
exec_cmd.o: exec_cmd.c GIT-CFLAGS
|
||||||
$(CC) -o $*.o -c $(ALL_CFLAGS) '-DGIT_EXEC_PATH="$(gitexecdir_SQ)"' $<
|
$(CC) -o $*.o -c $(ALL_CFLAGS) '-DGIT_EXEC_PATH="$(gitexecdir_SQ)"' $<
|
||||||
|
builtin-init-db.o: builtin-init-db.c GIT-CFLAGS
|
||||||
|
$(CC) -o $*.o -c $(ALL_CFLAGS) -DDEFAULT_GIT_TEMPLATE_DIR='"$(template_dir_SQ)"' $<
|
||||||
|
|
||||||
http.o: http.c GIT-CFLAGS
|
http.o: http.c GIT-CFLAGS
|
||||||
$(CC) -o $*.o -c $(ALL_CFLAGS) -DGIT_USER_AGENT='"git/$(GIT_VERSION)"' $<
|
$(CC) -o $*.o -c $(ALL_CFLAGS) -DGIT_USER_AGENT='"git/$(GIT_VERSION)"' $<
|
||||||
@ -605,7 +606,7 @@ tags:
|
|||||||
find . -name '*.[hcS]' -print | xargs ctags -a
|
find . -name '*.[hcS]' -print | xargs ctags -a
|
||||||
|
|
||||||
### Detect prefix changes
|
### Detect prefix changes
|
||||||
TRACK_CFLAGS = $(subst ','\'',$(ALL_CFLAGS)):$(GIT_VERSION):\
|
TRACK_CFLAGS = $(subst ','\'',$(ALL_CFLAGS)):$(GIT_PYTHON_DIR_SQ):\
|
||||||
$(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)
|
$(bindir_SQ):$(gitexecdir_SQ):$(template_dir_SQ):$(prefix_SQ)
|
||||||
|
|
||||||
GIT-CFLAGS: .FORCE-GIT-CFLAGS
|
GIT-CFLAGS: .FORCE-GIT-CFLAGS
|
||||||
|
|||||||
@ -479,17 +479,18 @@ sub commit_lib {
|
|||||||
my @lock = $SVN::Core::VERSION ge '1.2.0' ? (undef, 0) : ();
|
my @lock = $SVN::Core::VERSION ge '1.2.0' ? (undef, 0) : ();
|
||||||
my $commit_msg = "$GIT_SVN_DIR/.svn-commit.tmp.$$";
|
my $commit_msg = "$GIT_SVN_DIR/.svn-commit.tmp.$$";
|
||||||
|
|
||||||
foreach my $c (@revs) {
|
|
||||||
# fork for each commit because there's a memory leak I
|
|
||||||
# can't track down... (it's probably in the SVN code)
|
|
||||||
defined(my $pid = open my $fh, '-|') or croak $!;
|
|
||||||
if (!$pid) {
|
|
||||||
if (defined $LC_ALL) {
|
if (defined $LC_ALL) {
|
||||||
$ENV{LC_ALL} = $LC_ALL;
|
$ENV{LC_ALL} = $LC_ALL;
|
||||||
} else {
|
} else {
|
||||||
delete $ENV{LC_ALL};
|
delete $ENV{LC_ALL};
|
||||||
}
|
}
|
||||||
|
foreach my $c (@revs) {
|
||||||
my $log_msg = get_commit_message($c, $commit_msg);
|
my $log_msg = get_commit_message($c, $commit_msg);
|
||||||
|
|
||||||
|
# fork for each commit because there's a memory leak I
|
||||||
|
# can't track down... (it's probably in the SVN code)
|
||||||
|
defined(my $pid = open my $fh, '-|') or croak $!;
|
||||||
|
if (!$pid) {
|
||||||
my $ed = SVN::Git::Editor->new(
|
my $ed = SVN::Git::Editor->new(
|
||||||
{ r => $r_last,
|
{ r => $r_last,
|
||||||
ra => $SVN,
|
ra => $SVN,
|
||||||
@ -535,6 +536,7 @@ sub commit_lib {
|
|||||||
($r_last, $cmt_last) = ($r_new, $cmt_new);
|
($r_last, $cmt_last) = ($r_new, $cmt_new);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$ENV{LC_ALL} = 'C';
|
||||||
unlink $commit_msg;
|
unlink $commit_msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -65,6 +65,20 @@ my $rc = GetOptions("from=s" => \$from,
|
|||||||
"no-signed-off-cc|no-signed-off-by-cc" => \$no_signed_off_cc,
|
"no-signed-off-cc|no-signed-off-by-cc" => \$no_signed_off_cc,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# Verify the user input
|
||||||
|
|
||||||
|
foreach my $entry (@to) {
|
||||||
|
die "Comma in --to entry: $entry'\n" unless $entry !~ m/,/;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach my $entry (@initial_cc) {
|
||||||
|
die "Comma in --cc entry: $entry'\n" unless $entry !~ m/,/;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach my $entry (@bcclist) {
|
||||||
|
die "Comma in --bcclist entry: $entry'\n" unless $entry !~ m/,/;
|
||||||
|
}
|
||||||
|
|
||||||
# Now, let's fill any that aren't set in with defaults:
|
# Now, let's fill any that aren't set in with defaults:
|
||||||
|
|
||||||
sub gitvar {
|
sub gitvar {
|
||||||
|
|||||||
Reference in New Issue
Block a user