libgit2/tests-clar/status
Russell Belfer 991a56c704 Add flag to write gitlink on setting repo workdir
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.
2012-07-10 23:19:47 -07:00
..
ignore.c Add a test showing that git_status_file gets confused by spaces in .gitignore 2012-06-09 17:43:18 -04:00
single.c Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
status_data.h Fix git_status_file for files that start with a character > 0x7f 2012-06-07 09:50:19 -04:00
status_helpers.c Add cache busting to attribute cache 2012-05-10 11:12:43 -07:00
status_helpers.h Add cache busting to attribute cache 2012-05-10 11:12:43 -07:00
submodules.c Ranged iterators and rewritten git_status_file 2012-05-15 14:34:15 -07:00
worktree.c Add flag to write gitlink on setting repo workdir 2012-07-10 23:19:47 -07:00