libgit2/include/git2
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
..
attr.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
blob.h blob: add git_blob_create_fromchunks() 2012-06-07 20:33:22 +02:00
branch.h branch: drop git_branch_list() 2012-06-21 18:51:32 +02:00
commit.h message: Expose git_message_prettify() 2012-06-19 10:02:22 +02:00
common.h Updates from comments on OS4 compatibility pull request http://github.com/libgit2/libgit2/pull/766 2012-06-14 18:57:24 +01:00
config.h Adding git_config_foreach_match() iteration fn 2012-07-10 23:19:47 -07:00
diff.h diff: make inter-hunk-context default value git-compliant 2012-07-02 17:27:49 +02:00
errors.h amigaos: Cleanup 2012-06-22 21:25:17 +02:00
index.h Nicer constant 2012-06-19 15:16:38 -07:00
indexer.h indexer: don't use '/objects/pack/' unconditionally 2012-06-28 10:24:03 +02:00
inttypes.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
merge.h merge: Expose git_merge_base_many() 2012-06-07 16:25:37 +02:00
message.h message: Expose git_message_prettify() 2012-06-19 10:02:22 +02:00
net.h Update Copyright header 2012-02-13 17:11:09 +01:00
notes.h errors: Rename the generic return codes 2012-05-18 01:26:26 +02:00
object.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
odb_backend.h Properly tag all enums with a _t 2012-05-18 01:26:23 +02:00
odb.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
oid.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
reflog.h errors: Rename the generic return codes 2012-05-18 01:26:26 +02:00
refs.h references: introduce git_reference_foreach_glob() 2012-06-22 21:40:24 +02:00
refspec.h Expose git_refspec_parse() 2012-06-12 15:24:33 +02:00
remote.h Merge pull request #697 from carlosmn/ssl 2012-06-05 13:53:33 -07:00
repository.h Add flag to write gitlink on setting repo workdir 2012-07-10 23:19:47 -07:00
reset.h Add git_reset() 2012-06-07 21:27:30 +02:00
revparse.h Adding comment documentation for rev-parse api. 2012-05-11 11:30:46 -07:00
revwalk.h Replace incorrect 'it' with 'if' in documentation 2012-07-03 12:35:33 -07:00
signature.h errors: Rename the generic return codes 2012-05-18 01:26:26 +02:00
status.h Fix filemode comparison in diffs 2012-06-08 12:09:10 -07:00
stdint.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
submodule.h Fix spelling errors. 2012-05-19 20:26:52 +07:00
tag.h message: Expose git_message_prettify() 2012-06-19 10:02:22 +02:00
threads.h Update Copyright header 2012-02-13 17:11:09 +01:00
tree.h tree: Rename entry_copy to entry_dup 2012-06-29 17:08:36 +02:00
types.h Merge remote-tracking branch 'source/development' into development 2012-06-13 23:28:51 +01:00
version.h libgit2 v0.17.0 "Lord of Diffstruction" 2012-05-19 01:40:46 +02:00
windows.h Update Copyright header 2012-02-13 17:11:09 +01:00