summaryrefslogtreecommitdiff
path: root/worktree.h
diff options
context:
space:
mode:
authorMichael Rappazzo <rappazzo@gmail.com>2015-10-08 17:01:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-10-08 18:57:07 (GMT)
commit92718b7438799f4654304e2fa3b5b7e5a9fda882 (patch)
treebe65427222e07b4237ac42273dd98177eed0a53d /worktree.h
parent51934904425e55a190b05f0a7a3de40ea486f0e5 (diff)
downloadgit-92718b7438799f4654304e2fa3b5b7e5a9fda882.zip
git-92718b7438799f4654304e2fa3b5b7e5a9fda882.tar.gz
git-92718b7438799f4654304e2fa3b5b7e5a9fda882.tar.bz2
worktree: add details to the worktree struct
In addition to the absolute path in the worktree struct, add the location of the git dir, the head ref (if not detached), the head revision sha1, whether or not head is detached, and whether or not the worktree is a bare repo. Signed-off-by: Michael Rappazzo <rappazzo@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'worktree.h')
-rw-r--r--worktree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/worktree.h b/worktree.h
index 7022029..b4b3dda 100644
--- a/worktree.h
+++ b/worktree.h
@@ -4,6 +4,10 @@
struct worktree {
char *path;
char *git_dir;
+ char *head_ref;
+ unsigned char head_sha1[20];
+ int is_detached;
+ int is_bare;
};
/* Functions for acting on the information about worktrees. */