mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 14:37:30 +00:00
Don't clear the opt instance in the diff example.
The version field is overwritten otherwise. The opt instance is already initialized properly.
This commit is contained in:
parent
b101fbf9a4
commit
75a0a80029
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user