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.
This commit is contained in:
parent
91af81a98e
commit
bf16c71e2f
@ -144,9 +144,9 @@ int main(int argc, char **argv)
|
|||||||
time(&now);
|
time(&now);
|
||||||
realdate = ctime(&now);
|
realdate = ctime(&now);
|
||||||
|
|
||||||
gecos = getenv("COMMITTER_NAME") ? : realgecos;
|
gecos = getenv("AUTHOR_NAME") ? : realgecos;
|
||||||
email = getenv("COMMITTER_EMAIL") ? : realemail;
|
email = getenv("AUTHOR_EMAIL") ? : realemail;
|
||||||
date = getenv("COMMITTER_DATE") ? : realdate;
|
date = getenv("AUTHOR_DATE") ? : realdate;
|
||||||
|
|
||||||
remove_special(gecos); remove_special(realgecos);
|
remove_special(gecos); remove_special(realgecos);
|
||||||
remove_special(email); remove_special(realemail);
|
remove_special(email); remove_special(realemail);
|
@ -180,7 +180,7 @@ int main(int argc, char **argv)
|
|||||||
char *arg = argv[1];
|
char *arg = argv[1];
|
||||||
argv++;
|
argv++;
|
||||||
argc--;
|
argc--;
|
||||||
if (!strcmp(arg, "-R")) {
|
if (!strcmp(arg, "-r")) {
|
||||||
recursive = 1;
|
recursive = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user