Merge branch 'rs/strbuf-getcwd'
commitf655651e09b9fa7bf8ff13f1b4a5b16c7956e4cf
authorJunio C Hamano <gitster@pobox.com>
Tue, 2 Sep 2014 20:27:45 +0000 (2 13:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Sep 2014 20:28:44 +0000 (2 13:28 -0700)
tree4027a4324f45863de3811cf89df768d584f08e3e
parent51eeaea2108a4105542fe03935b411dfdbf5fe2b
parent9610decf4dc6b9352b81c67e3b03e5bb47fc8427
Merge branch 'rs/strbuf-getcwd'

Reduce the use of fixed sized buffer passed to getcwd() calls
by introducing xgetcwd() helper.

* rs/strbuf-getcwd:
  use strbuf_add_absolute_path() to add absolute paths
  abspath: convert absolute_path() to strbuf
  use xgetcwd() to set $GIT_DIR
  use xgetcwd() to get the current directory or die
  wrapper: add xgetcwd()
  abspath: convert real_path_internal() to strbuf
  abspath: use strbuf_getcwd() to remember original working directory
  setup: convert setup_git_directory_gently_1 et al. to strbuf
  unix-sockets: use strbuf_getcwd()
  strbuf: add strbuf_getcwd()
12 files changed:
Documentation/technical/api-strbuf.txt
builtin/init-db.c
builtin/rev-parse.c
dir.c
git-compat-util.h
git.c
setup.c
sha1_file.c
strbuf.c
strbuf.h
trace.c
unix-socket.c