summaryrefslogtreecommitdiff
path: root/diff-lib.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-22 21:09:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-24 05:39:11 (GMT)
commit76c9c0db3d0b9d17ca4dcbb0f9b6678f78a2492c (patch)
tree17dc65df9f6dd12ec0398da883bf0193ece18c93 /diff-lib.c
parentdd8a8d476b65fdc00747f504069befdf646f8454 (diff)
downloadgit-76c9c0db3d0b9d17ca4dcbb0f9b6678f78a2492c.zip
git-76c9c0db3d0b9d17ca4dcbb0f9b6678f78a2492c.tar.gz
git-76c9c0db3d0b9d17ca4dcbb0f9b6678f78a2492c.tar.bz2
rebase -i: Export GIT_AUTHOR_* variables explicitly
There is no point doing self-assignments of these variables. Instead, just export them to the environment, but do so in a sub-shell, because VAR1=VAL1 VAR2=VAL2 ... command arg1 arg2... does not mark the variables exported if command that is run is a shell function, according to POSIX.1. The callers of do_with_author do not rely on seeing the effect of any shell variable assignments that may happen inside what was called through this shell function (currently "output" is the only one), so running it in the subshell doesn't have an adverse semantic effect. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff-lib.c')
0 files changed, 0 insertions, 0 deletions