Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ignore.c | ||
single.c | ||
status_data.h | ||
status_helpers.c | ||
status_helpers.h | ||
submodules.c | ||
worktree.c |
This added a flag to the `git_repository_set_workdir()` function that enables generation of a `.git` gitlink file that links the new workdir to the parent repository. Essentially, the flag tells the function to write out the changes to disk to permanently set the workdir of the repository to the new path. If you pass this flag as true, then setting the workdir to something other than the default workdir (i.e. the parent of the .git repo directory), will create a plain file named ".git" with the standard gitlink contents "gitdir: <repo-path>", and also update the "core.worktree" and "core.bare" config values. Setting the workdir to the default repo workdir will clear the core.worktree flag (but still permanently set core.bare to false). BTW, the libgit2 API does not currently provide a function for clearing the workdir and converting a non-bare repo into a bare one.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ignore.c | Loading commit data... | |
single.c | Loading commit data... | |
status_data.h | Loading commit data... | |
status_helpers.c | Loading commit data... | |
status_helpers.h | Loading commit data... | |
submodules.c | Loading commit data... | |
worktree.c | Loading commit data... |