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

Re: [PATCH 2/3] wrapper: add xgetcwd()

From: René Scharfe <hidden>
Date: 2016-06-15 23:01:59

Am 20.07.2014 14:35, schrieb Duy Nguyen:
On Sun, Jul 20, 2014 at 6:21 PM, René Scharfe [off-list ref] wrote:
quoted
+char *xgetcwd(void)
+{
+       struct strbuf sb = STRBUF_INIT;
+       if (strbuf_add_cwd(&sb))
+               die_errno("unable to get current working directory");
Wrap the string with _() to make it translatable? I can't see why any
script would want to grep this string..
Sure, good idea.
quoted
+       return strbuf_detach(&sb, NULL);
+}
Thank you for the review,
René
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help