summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 41cb748)
raw | patch | inline | side by side (parent: 41cb748)
author | Linus Torvalds <torvalds@g5.osdl.org> | |
Tue, 5 Jul 2005 22:45:00 +0000 (15:45 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Tue, 5 Jul 2005 22:45:00 +0000 (15:45 -0700) |
It did a "for_each_ref()" in addition to the HEAD case, which was a
left-over from an early broken test.
left-over from an early broken test.
refs.c | patch | blob | history |
index 6ca04d3b0fb4b9c40e816820309fd879ffc1d40b..09c9f904f0a5e1050ad1014a65aaef1e3d84e90a 100644 (file)
--- a/refs.c
+++ b/refs.c
unsigned char sha1[20];
const char *headpath = git_path("HEAD");
if (!read_ref(headpath, sha1))
- fn(headpath, sha1);
- return do_for_each_ref(get_refs_directory(), fn);
+ return fn(headpath, sha1);
+ return 0;
}
int for_each_ref(int (*fn)(const char *path, const unsigned char *sha1))