projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
read-cache.c: use xcalloc() not calloc()
[git.git]
/
revision.c
diff --git
a/revision.c
b/revision.c
index
5f2f0be
..
d41e59b
100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-674,7
+674,7
@@
int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
local_flags = UNINTERESTING;
arg++;
}
local_flags = UNINTERESTING;
arg++;
}
- if (get_sha1(arg, sha1)
< 0
) {
+ if (get_sha1(arg, sha1)) {
int j;
if (seen_dashdash || local_flags)
int j;
if (seen_dashdash || local_flags)
@@
-693,7
+693,7
@@
int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
if (def && !revs->commits) {
unsigned char sha1[20];
struct commit *commit;
if (def && !revs->commits) {
unsigned char sha1[20];
struct commit *commit;
- if (get_sha1(def, sha1)
< 0
)
+ if (get_sha1(def, sha1))
die("bad default revision '%s'", def);
commit = get_commit_reference(revs, def, sha1, 0);
add_one_commit(commit, revs);
die("bad default revision '%s'", def);
commit = get_commit_reference(revs, def, sha1, 0);
add_one_commit(commit, revs);