Merge branch 'nd/multiple-work-trees' into next
commita29d310f80d848e23a46f4fba328b40d624b66ef
authorJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2014 19:52:13 +0000 (17 12:52 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2014 19:52:13 +0000 (17 12:52 -0700)
tree59282b48191b445d0d16e7038e0baa14c51290ca
parent5e0ce452a951cfa913c6e7caea22bcea5de4dfb0
parentbb75e4c9ffd0c0f1edfbea9bf4d4f63e4e68ff1c
Merge branch 'nd/multiple-work-trees' into next

A replacement for contrib/workdir/git-new-workdir that does not
rely on symbolic links and make sharing of objects and refs safer
by making the borrowee and borrowers aware of each other.

* nd/multiple-work-trees: (31 commits)
  checkout: don't require a work tree when checking out into a new one
  git_path(): keep "info/sparse-checkout" per work-tree
  count-objects: report unused files in $GIT_DIR/repos/...
  gc: support prune --repos
  gc: factor out gc.pruneexpire parsing code
  gc: style change -- no SP before closing parenthesis
  prune: strategies for linked checkouts
  checkout: detach if the branch is already checked out elsewhere
  checkout: clean up half-prepared directories in --to mode
  checkout: support checking out into a new working directory
  use new wrapper write_file() for simple file writing
  wrapper.c: wrapper to open a file, fprintf then close
  setup.c: support multi-checkout repo setup
  setup.c: detect $GIT_COMMON_DIR check_repository_format_gently()
  setup.c: convert check_repository_format_gently to use strbuf
  setup.c: detect $GIT_COMMON_DIR in is_git_directory()
  setup.c: convert is_git_directory() to use strbuf
  git-stash: avoid hardcoding $GIT_DIR/logs/....
  *.sh: avoid hardcoding $GIT_DIR/hooks/...
  git-sh-setup.sh: use rev-parse --git-path to get $GIT_DIR/objects
  ...
20 files changed:
Documentation/git-rev-parse.txt
Documentation/git.txt
Documentation/gitrepository-layout.txt
builtin/checkout.c
builtin/clone.c
builtin/commit.c
builtin/fetch.c
builtin/fsck.c
builtin/receive-pack.c
builtin/remote.c
builtin/repack.c
builtin/rev-parse.c
cache.h
daemon.c
git.c
refs.c
refs.h
sha1_file.c
submodule.c
trace.c