[PATCH] builtin/add: add a missing newline to an stderr message

Subsystems: the rest

STALE3279d

4 messages, 3 authors, 2017-08-08 · open the first message on its own page

[PATCH] builtin/add: add a missing newline to an stderr message

From: Ramsay Jones <hidden>
Date: 2017-08-08 21:36:40

Signed-off-by: Ramsay Jones <redacted>
---

Hi Junio,

I noticed this while looking into the t3700 failure on cygwin tonight.
Also, I couldn't decide whether or not to add the i18n '_()' brackets
around the message. In the end I didn't, but will happily add them
if you think I should.

Thanks!

ATB,
Ramsay Jones

 builtin/add.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/add.c b/builtin/add.c
index e888fb8c5..385b53ae7 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -43,7 +43,7 @@ static void chmod_pathspec(struct pathspec *pathspec, int force_mode)
 			continue;
 
 		if (chmod_cache_entry(ce, force_mode) < 0)
-			fprintf(stderr, "cannot chmod '%s'", ce->name);
+			fprintf(stderr, "cannot chmod '%s'\n", ce->name);
 	}
 }
 
-- 
2.14.0

Re: [PATCH] builtin/add: add a missing newline to an stderr message

From: René Scharfe <hidden>
Date: 2017-08-08 21:45:25

Am 08.08.2017 um 23:36 schrieb Ramsay Jones:
quoted hunk
Signed-off-by: Ramsay Jones <redacted>
---

Hi Junio,

I noticed this while looking into the t3700 failure on cygwin tonight.
Also, I couldn't decide whether or not to add the i18n '_()' brackets
around the message. In the end I didn't, but will happily add them
if you think I should.

Thanks!

ATB,
Ramsay Jones

  builtin/add.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/add.c b/builtin/add.c
index e888fb8c5..385b53ae7 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -43,7 +43,7 @@ static void chmod_pathspec(struct pathspec *pathspec, int force_mode)
  			continue;
  
  		if (chmod_cache_entry(ce, force_mode) < 0)
-			fprintf(stderr, "cannot chmod '%s'", ce->name);
+			fprintf(stderr, "cannot chmod '%s'\n", ce->name);
  	}
  }
  
FYI: I brought this up yesterday in the original thread, along with a
few other observations:

  https://public-inbox.org/git/3c61d9f6-e0fd-22a4-68e0-89fd9ce9b944@web.de/

Not sure if the discussion can or should be revived after all this
time, though; just sending patches like yours might be the way to go.

René

Re: [PATCH] builtin/add: add a missing newline to an stderr message

From: Ramsay Jones <hidden>
Date: 2017-08-08 23:55:16


On 08/08/17 22:45, René Scharfe wrote:
Am 08.08.2017 um 23:36 schrieb Ramsay Jones:
quoted
Signed-off-by: Ramsay Jones <redacted>
---

Hi Junio,

I noticed this while looking into the t3700 failure on cygwin tonight.
Also, I couldn't decide whether or not to add the i18n '_()' brackets
around the message. In the end I didn't, but will happily add them
if you think I should.

Thanks!

ATB,
Ramsay Jones

  builtin/add.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/add.c b/builtin/add.c
index e888fb8c5..385b53ae7 100644
--- a/builtin/add.c
+++ b/builtin/add.c
@@ -43,7 +43,7 @@ static void chmod_pathspec(struct pathspec *pathspec, int force_mode)
  			continue;
  
  		if (chmod_cache_entry(ce, force_mode) < 0)
-			fprintf(stderr, "cannot chmod '%s'", ce->name);
+			fprintf(stderr, "cannot chmod '%s'\n", ce->name);
  	}
  }
  
FYI: I brought this up yesterday in the original thread, along with a
few other observations:

  https://public-inbox.org/git/3c61d9f6-e0fd-22a4-68e0-89fd9ce9b944@web.de/
Ah, I missed that.

Hmm, I just looked at the code in builtin/update-index.c. Yes, it
would probably be a good idea to harmonize the messages - but just
where did 'flip' come from? ;-)

ATB,
Ramsay Jones

Re: [PATCH] builtin/add: add a missing newline to an stderr message

From: Jonathan Nieder <hidden>
Date: 2017-08-08 22:34:42

Ramsay Jones wrote:
Signed-off-by: Ramsay Jones <redacted>
Reviewed-by: Jonathan Nieder <redacted>

Thanks for catching it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help