diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-02-12 10:49:35 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-12 22:13:35 +0100 |
commit | 9c620fc7a60c64e183a661f4df4f7b9e25501099 (patch) | |
tree | 2ade890bbdf75a6bdb0bd6718c838b815c778f3e /worktree.h | |
parent | worktree.c: add validate_worktree() (diff) | |
download | git-9c620fc7a60c64e183a661f4df4f7b9e25501099.tar.xz git-9c620fc7a60c64e183a661f4df4f7b9e25501099.zip |
worktree.c: add update_worktree_location()
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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/worktree.h b/worktree.h index cb577de8cd..a913428c3d 100644 --- a/worktree.h +++ b/worktree.h @@ -69,6 +69,12 @@ extern int validate_worktree(const struct worktree *wt, struct strbuf *errmsg); /* + * Update worktrees/xxx/gitdir with the new path. + */ +extern void update_worktree_location(struct worktree *wt, + const char *path_); + +/* * Free up the memory for worktree(s) */ extern void free_worktrees(struct worktree **); |