Thread (10 messages) flat view 10 messages, 2 authors, 2016-06-15

Re: [PATCH 3/3] use xgetcwd() get the current directory or die

From: Duy Nguyen <hidden>
Date: 2016-06-15 23:01:59

On Sun, Jul 20, 2014 at 6:22 PM, René Scharfe [off-list ref] wrote:
Convert several calls of getcwd() and die() to use xgetcwd() instead.
This way we get rid of fixed-size buffers (which can be too small
depending on the used file system) and gain consistent error messages.

Signed-off-by: Rene Scharfe <redacted>
---
 builtin/init-db.c   | 17 ++++++++---------
 builtin/rev-parse.c |  6 +++---
 dir.c               | 12 ++++++++----
 trace.c             |  7 ++++---
 4 files changed, 23 insertions(+), 19 deletions(-)
There should be a 4/3 to replace the remaining getcwd with
strbuf_getcwd. But I guess we could add that to the low hanging fruit
list.
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help