summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9688460)
raw | patch | inline | side by side (parent: 9688460)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Thu, 21 Sep 2006 21:29:59 +0000 (23:29 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 22 Sep 2006 03:54:41 +0000 (20:54 -0700) |
It called read_ref(git_path(..)..), where read_ref does the git_path()
stuff itself.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
stuff itself.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-update-index.c | patch | blob | history |
diff --git a/builtin-update-index.c b/builtin-update-index.c
index 0620e779b04146a01f9e06cbbcd535b106034bd6..09214c8a11e6afb927ab6da1aa3f0be5e50888c8 100644 (file)
--- a/builtin-update-index.c
+++ b/builtin-update-index.c
static void read_head_pointers(void)
{
- if (read_ref(git_path("HEAD"), head_sha1))
+ if (read_ref("HEAD", head_sha1))
die("No HEAD -- no initial commit yet?\n");
- if (read_ref(git_path("MERGE_HEAD"), merge_head_sha1)) {
+ if (read_ref("MERGE_HEAD", merge_head_sha1)) {
fprintf(stderr, "Not in the middle of a merge.\n");
exit(0);
}
int has_head = 1;
const char **pathspec = get_pathspec(prefix, av + 1);
- if (read_ref(git_path("HEAD"), head_sha1))
+ if (read_ref("HEAD", head_sha1))
/* If there is no HEAD, that means it is an initial
* commit. Update everything in the index.
*/