Allow -A as --authors-file alias for compatibility
authorKyle J. McKay <[email protected]>
Sun, 26 May 2013 21:58:29 +0000 (26 14:58 -0700)
committerKyle J. McKay <[email protected]>
Sun, 26 May 2013 21:58:29 +0000 (26 14:58 -0700)
git-export-filter.c

index ed7ea9b..883c3a8 100644 (file)
@@ -194,7 +194,7 @@ int main(int argc, char *argv[])
     die("freopen(NULL, \"wb\", stdout) failed");
   for (; optind < argc; ++optind) {
 #define A argv[optind]
-    if (strcmp(A, "--authors-file") == 0) {
+    if (strcmp(A, "--authors-file") == 0 || strcmp(A, "-A") == 0) {
       if (++optind >= argc || !A || !*A)
         die("--authors-file requires a filename argument");
       authorsfile = A;