projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Make the ProgramError class printable.
[git.git]
/
write-tree.c
diff --git
a/write-tree.c
b/write-tree.c
index
561a101
..
2b2c6b7
100644
(file)
--- a/
write-tree.c
+++ b/
write-tree.c
@@
-89,14
+89,14
@@
int main(int argc, char **argv)
int entries = read_cache();
unsigned char sha1[20];
int entries = read_cache();
unsigned char sha1[20];
- if (argc
==
2) {
+ if (argc
==
2) {
if (!strcmp(argv[1], "--missing-ok"))
missing_ok = 1;
else
die("unknown option %s", argv[1]);
}
if (!strcmp(argv[1], "--missing-ok"))
missing_ok = 1;
else
die("unknown option %s", argv[1]);
}
- if (argc
>
2)
+ if (argc
>
2)
die("too many options");
if (entries < 0)
die("too many options");
if (entries < 0)