mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-07 13:43:43 +00:00
Merge pull request #1273 from sba1/example-diff-fix
Don't clear the opt instance in the diff example.
This commit is contained in:
commit
586f71ef2e
@ -138,8 +138,6 @@ int main(int argc, char *argv[])
|
|||||||
int i, color = -1, compact = 0, cached = 0;
|
int i, color = -1, compact = 0, cached = 0;
|
||||||
char *a, *dir = ".", *treeish1 = NULL, *treeish2 = NULL;
|
char *a, *dir = ".", *treeish1 = NULL, *treeish2 = NULL;
|
||||||
|
|
||||||
memset(&opts, 0, sizeof(opts));
|
|
||||||
|
|
||||||
/* parse arguments as copied from git-diff */
|
/* parse arguments as copied from git-diff */
|
||||||
|
|
||||||
for (i = 1; i < argc; ++i) {
|
for (i = 1; i < argc; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user