diff options
author | Michael Rappazzo <rappazzo@gmail.com> | 2015-10-08 13:01:04 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-08 11:57:07 -0700 |
commit | 92718b7438799f4654304e2fa3b5b7e5a9fda882 (patch) | |
tree | be65427222e07b4237ac42273dd98177eed0a53d /worktree.h | |
parent | 51934904425e55a190b05f0a7a3de40ea486f0e5 (diff) | |
download | git-92718b7438799f4654304e2fa3b5b7e5a9fda882.tar.gz |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/worktree.h b/worktree.h index 7022029db5..b4b3dda792 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. */ |