aboutsummaryrefslogtreecommitdiff
path: root/commit-tree.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-11 08:37:17 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-11 08:37:17 -0700
commitbf16c71e2f9fc9ca44273f7f4637dce194a49cce (patch)
treecc4cf7c0e5833fdfc4999d33d5b652afa4858bb9 /commit-tree.c
parent91af81a98ea5c5594c67a63abc933250e05c13c6 (diff)
downloadgit-bf16c71e2f9fc9ca44273f7f4637dce194a49cce.tar.gz
git-bf16c71e2f9fc9ca44273f7f4637dce194a49cce.tar.xz
Fix up commit-tree/diff-tree user interface issues.
No, this doesn't make them easy to use, but makes diff-tree use the "-r" flag for "recursive" (not "-R") and makes commit-tree use AUTHOR_xxx environment flags (not COMMITTER_xxx) to match what it actually does.
Diffstat (limited to 'commit-tree.c')
-rw-r--r--commit-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commit-tree.c b/commit-tree.c
index 4fe64ce0b..352ded104 100644
--- a/commit-tree.c
+++ b/commit-tree.c
@@ -144,9 +144,9 @@ int main(int argc, char **argv)
time(&now);
realdate = ctime(&now);
- gecos = getenv("COMMITTER_NAME") ? : realgecos;
- email = getenv("COMMITTER_EMAIL") ? : realemail;
- date = getenv("COMMITTER_DATE") ? : realdate;
+ gecos = getenv("AUTHOR_NAME") ? : realgecos;
+ email = getenv("AUTHOR_EMAIL") ? : realemail;
+ date = getenv("AUTHOR_DATE") ? : realdate;
remove_special(gecos); remove_special(realgecos);
remove_special(email); remove_special(realemail);