git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] RelNotes/1.8.5: direct script writers to "git status --porcelain"
@ 2013-09-26 13:23 Matthieu Moy
  2013-09-26 18:19 ` Jakub Narebski
  0 siblings, 1 reply; 5+ messages in thread
From: Matthieu Moy @ 2013-09-26 13:23 UTC (permalink / raw)
  To: git, gitster; +Cc: Matthieu Moy

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---

Not terribly important, but the old item alone may sound like "we
broke your script purposely, good luck with the new version" to a
script writer.

 Documentation/RelNotes/1.8.5.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/RelNotes/1.8.5.txt b/Documentation/RelNotes/1.8.5.txt
index ac5c3fa..f100a0f 100644
--- a/Documentation/RelNotes/1.8.5.txt
+++ b/Documentation/RelNotes/1.8.5.txt
@@ -96,6 +96,9 @@ UI, Workflows & Features
 
  * "git status" now omits the prefix to make its output a comment in a
    commit log editor, which is not necessary for human consumption.
+   Scripts that parse the output of "git status" are advised to use
+   "git status --porcelain", which is both easier to parse and stable,
+   instead.
 
  * Make "foo^{tag}" to peel a tag to itself, i.e. no-op., and fail if
    "foo" is not a tag.  "git rev-parse --verify v1.0^{tag}" would be
-- 
1.8.4.474.g128a96c

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] RelNotes/1.8.5: direct script writers to "git status --porcelain"
  2013-09-26 13:23 [PATCH] RelNotes/1.8.5: direct script writers to "git status --porcelain" Matthieu Moy
@ 2013-09-26 18:19 ` Jakub Narebski
  2013-09-26 18:33   ` [PATCH v2] " Matthieu Moy
  2013-09-26 20:45   ` [PATCH] " Keshav Kini
  0 siblings, 2 replies; 5+ messages in thread
From: Jakub Narebski @ 2013-09-26 18:19 UTC (permalink / raw)
  To: git

Matthieu Moy <Matthieu.Moy <at> imag.fr> writes:


>   * "git status" now omits the prefix to make its output a comment in a
>     commit log editor, which is not necessary for human consumption.
> +   Scripts that parse the output of "git status" are advised to use
> +   "git status --porcelain", which is both easier to parse and stable,
> +   instead.

Good addition.

Perhaps "to use instead ..." would be easier to understand than
proposed "to use ..., instead." (with "..." being one line long).

-- 
Jakub Narebski.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2] RelNotes/1.8.5: direct script writers to "git status --porcelain"
  2013-09-26 18:19 ` Jakub Narebski
@ 2013-09-26 18:33   ` Matthieu Moy
  2013-09-26 20:45   ` [PATCH] " Keshav Kini
  1 sibling, 0 replies; 5+ messages in thread
From: Matthieu Moy @ 2013-09-26 18:33 UTC (permalink / raw)
  To: git, gitster; +Cc: Jakub Narebski, Matthieu Moy

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
Jakub Narebski <jnareb@gmail.com> writes:

> Perhaps "to use instead ..." would be easier to understand than
> proposed "to use ..., instead." (with "..." being one line long).

Actually, I had the version below staged, but forgot to "commit
--amend" before sending. Should be clear enough.

 Documentation/RelNotes/1.8.5.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/RelNotes/1.8.5.txt b/Documentation/RelNotes/1.8.5.txt
index ac5c3fa..e295266 100644
--- a/Documentation/RelNotes/1.8.5.txt
+++ b/Documentation/RelNotes/1.8.5.txt
@@ -96,6 +96,9 @@ UI, Workflows & Features
 
  * "git status" now omits the prefix to make its output a comment in a
    commit log editor, which is not necessary for human consumption.
+   Scripts that parse the output of "git status" are advised to use
+   "git status --porcelain" instead. Its format is both easier to
+   parse and stable.
 
  * Make "foo^{tag}" to peel a tag to itself, i.e. no-op., and fail if
    "foo" is not a tag.  "git rev-parse --verify v1.0^{tag}" would be
-- 
1.8.4.474.g128a96c

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] RelNotes/1.8.5: direct script writers to "git status --porcelain"
  2013-09-26 18:19 ` Jakub Narebski
  2013-09-26 18:33   ` [PATCH v2] " Matthieu Moy
@ 2013-09-26 20:45   ` Keshav Kini
  2013-09-28  0:08     ` Jonathan Nieder
  1 sibling, 1 reply; 5+ messages in thread
From: Keshav Kini @ 2013-09-26 20:45 UTC (permalink / raw)
  To: git

Jakub Narebski <jnareb@gmail.com> writes:
> Matthieu Moy <Matthieu.Moy <at> imag.fr> writes:
>>   * "git status" now omits the prefix to make its output a comment in a
>>     commit log editor, which is not necessary for human consumption.
>> +   Scripts that parse the output of "git status" are advised to use
>> +   "git status --porcelain", which is both easier to parse and stable,
>> +   instead.
>
> Good addition.
>
> Perhaps "to use instead ..." would be easier to understand than
> proposed "to use ..., instead." (with "..." being one line long).

FWIW, I find "to use instead ___" slightly stilted. I'd suggest "to
instead use", but rewording it to the following is much better, IMHO:
'... are advised to use "git status --porcelain" instead, as it is both
stable and easier to parse.'

-Keshav

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] RelNotes/1.8.5: direct script writers to "git status --porcelain"
  2013-09-26 20:45   ` [PATCH] " Keshav Kini
@ 2013-09-28  0:08     ` Jonathan Nieder
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Nieder @ 2013-09-28  0:08 UTC (permalink / raw)
  To: Keshav Kini; +Cc: git, Jakub Narebski, Matthieu Moy

Keshav Kini wrote:
> Jakub Narebski <jnareb@gmail.com> writes:
>> Matthieu Moy <Matthieu.Moy@imag.fr> writes:

>>>   * "git status" now omits the prefix to make its output a comment in a
>>>     commit log editor, which is not necessary for human consumption.
>>> +   Scripts that parse the output of "git status" are advised to use
>>> +   "git status --porcelain", which is both easier to parse and stable,
>>> +   instead.
>>
>> Good addition.
[...]
>                   rewording it to the following is much better, IMHO:
> '... are advised to use "git status --porcelain" instead, as it is both
> stable and easier to parse.'

Thanks, all.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-09-28  0:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-26 13:23 [PATCH] RelNotes/1.8.5: direct script writers to "git status --porcelain" Matthieu Moy
2013-09-26 18:19 ` Jakub Narebski
2013-09-26 18:33   ` [PATCH v2] " Matthieu Moy
2013-09-26 20:45   ` [PATCH] " Keshav Kini
2013-09-28  0:08     ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).