Skip to content

Instantly share code, notes, and snippets.

@ob
Created May 16, 2016 21:34
Show Gist options
  • Save ob/09da4ece7d4893613a86004dd2399865 to your computer and use it in GitHub Desktop.
Save ob/09da4ece7d4893613a86004dd2399865 to your computer and use it in GitHub Desktop.
===== fast-export.c 1.12 vs edited =====
--- 1.12/src/fast-export.c 2016-04-26 09:17:47 -07:00
+++ edited/src/fast-export.c 2016-05-16 14:34:26 -07:00
@@ -499,8 +499,9 @@ gitExport(opts *op)
f1 = popen(cmd, "r");
free(cmd);
}
+ if (cset->rstart == 0) goto all;
} else {
- /* Non-incremental, do all files */
+all: /* Non-incremental, do all files */
cset->rstart = TREE(cset);
cset->rstop = TABLE(cset);
cmd = strdup(op->nested ? "bk -A" : "bk -r");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment