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>
This commit is contained in:

committed by
Junio C Hamano

parent
5193490442
commit
92718b7438
@ -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. */
|
||||
|
Reference in New Issue
Block a user