Commit 586f71ef by Vicent Martí

Merge pull request #1273 from sba1/example-diff-fix

Don't clear the opt instance in the diff example.
parents b101fbf9 75a0a800
......@@ -138,8 +138,6 @@ int main(int argc, char *argv[])
int i, color = -1, compact = 0, cached = 0;
char *a, *dir = ".", *treeish1 = NULL, *treeish2 = NULL;
memset(&opts, 0, sizeof(opts));
/* parse arguments as copied from git-diff */
for (i = 1; i < argc; ++i) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment