author | Junio C Hamano <junkio@cox.net> | |
Mon, 8 May 2006 23:40:23 +0000 (16:40 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 8 May 2006 23:40:23 +0000 (16:40 -0700) |
* fix:
Separate object name errors from usage errors
Documentation: {caret} fixes (git-rev-list.txt)
Fix "git diff --stat" with long filenames
Fix repo-config set-multivar error return path.
Separate object name errors from usage errors
Documentation: {caret} fixes (git-rev-list.txt)
Fix "git diff --stat" with long filenames
Fix repo-config set-multivar error return path.
1 | 2 | |||
---|---|---|---|---|
config.c | patch | | diff1 | | diff2 | | blob | history |
diff.c | patch | | diff1 | | diff2 | | blob | history |
merge-tree.c | patch | | diff1 | | diff2 | | blob | history |
revision.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc config.c
Simple merge
diff --cc diff.c
Simple merge
diff --cc merge-tree.c
Simple merge
diff --cc revision.c
index f8ee38e54d52661cf91842e9f2fd14f74983a5d6,d41e59b9ccbe30d0589d52d73e0c7bef26394a23..2294b16ea2aa0b508073e7800ccb5975a2254301
--- 1/revision.c
--- 2/revision.c
+++ b/revision.c
revs->prune_data = get_pathspec(revs->prefix, argv + i);
break;
}
- commit = get_commit_reference(revs, arg, sha1, flags ^ local_flags);
- add_one_commit(commit, revs);
+ if (!seen_dashdash)
+ verify_non_filename(revs->prefix, arg);
+ object = get_reference(revs, arg, sha1, flags ^ local_flags);
+ add_pending_object(revs, object, arg);
}
- if (def && !revs->commits) {
+ if (def && !revs->pending_objects) {
unsigned char sha1[20];
- struct commit *commit;
+ struct object *object;
- 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);
+ object = get_reference(revs, def, sha1, 0);
+ add_pending_object(revs, object, def);
}
if (revs->topo_order || revs->unpacked)