summaryrefslogtreecommitdiff
path: root/worktree.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-04-24 10:01:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-25 04:28:55 (GMT)
commitfa099d23227f88b5a1cd79c646551130d9b36e6d (patch)
treef5308d3f4b446b027099b9720070023f5f2fa89a /worktree.h
parent17eff96b83be5c4c25e33a40e632d1b55c506d33 (diff)
downloadgit-fa099d23227f88b5a1cd79c646551130d9b36e6d.zip
git-fa099d23227f88b5a1cd79c646551130d9b36e6d.tar.gz
git-fa099d23227f88b5a1cd79c646551130d9b36e6d.tar.bz2
worktree.c: kill parse_ref() in favor of refs_resolve_ref_unsafe()
The manual parsing code is replaced with a call to refs_resolve_ref_unsafe(). The manual parsing code must die because only refs/files-backend.c should do that. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'worktree.h')
-rw-r--r--worktree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/worktree.h b/worktree.h
index 6bfb985..5ea5e50 100644
--- a/worktree.h
+++ b/worktree.h
@@ -4,7 +4,7 @@
struct worktree {
char *path;
char *id;
- char *head_ref;
+ char *head_ref; /* NULL if HEAD is broken or detached */
char *lock_reason; /* internal use */
unsigned char head_sha1[20];
int is_detached;