wrapper: add xgetcwd()
commit48834f9c2698648171aa3d0c0849279732bcd6f4
authorRené Scharfe <l.s.r@web.de>
Mon, 28 Jul 2014 18:29:50 +0000 (28 20:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jul 2014 19:17:53 +0000 (29 12:17 -0700)
tree6c81fd6a7c0d18356c5ff8fb32d1b1fee590d47a
parentced3c18356e3a7af9db6b28def7a52acc18f5218
wrapper: add xgetcwd()

Add the helper function xgetcwd(), which returns the current directory
or dies.  The returned string has to be free()d after use.

Helped-by: Duy Nguyen <pclouds@gmail.com>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
wrapper.c