git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] git-reset.txt: clarify documentation
@ 2019-03-05 18:54 Denton Liu
  2019-03-05 22:30 ` Junio C Hamano
  2019-03-05 23:34 ` [PATCH v2] " Denton Liu
  0 siblings, 2 replies; 5+ messages in thread
From: Denton Liu @ 2019-03-05 18:54 UTC (permalink / raw)
  To: git

git-reset.txt contained a missing "a" and "wrt". Fix the missing "a" for
correctness and replace "wrt" with "with respect to" so that the
documentation is not so cryptic.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
---
 Documentation/git-reset.txt | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index 132f8e55f6..dbf4e567a2 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -428,11 +428,11 @@ working index HEAD target         working index HEAD
 
 `reset --merge` is meant to be used when resetting out of a conflicted
 merge. Any mergy operation guarantees that the working tree file that is
-involved in the merge does not have local change wrt the index before
-it starts, and that it writes the result out to the working tree. So if
-we see some difference between the index and the target and also
-between the index and the working tree, then it means that we are not
-resetting out from a state that a mergy operation left after failing
+involved in the merge does not have a local change with respect to the
+index before it starts, and that it writes the result out to the working
+tree. So if we see some difference between the index and the target and
+also between the index and the working tree, then it means that we are
+not resetting out from a state that a mergy operation left after failing
 with a conflict. That is why we disallow `--merge` option in this case.
 
 `reset --keep` is meant to be used when removing some of the last
-- 
2.21.0.260.g8f7229c82f


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

* Re: [PATCH] git-reset.txt: clarify documentation
  2019-03-05 18:54 [PATCH] git-reset.txt: clarify documentation Denton Liu
@ 2019-03-05 22:30 ` Junio C Hamano
  2019-03-05 22:37   ` Denton Liu
  2019-03-05 23:34 ` [PATCH v2] " Denton Liu
  1 sibling, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2019-03-05 22:30 UTC (permalink / raw)
  To: Denton Liu; +Cc: git

Denton Liu <liu.denton@gmail.com> writes:

> git-reset.txt contained a missing "a" and "wrt". Fix the missing "a" for
> correctness and replace "wrt" with "with respect to" so that the
> documentation is not so cryptic.

Could you try again without unrelated reflowing of the text?

Thanks.

>
> Signed-off-by: Denton Liu <liu.denton@gmail.com>
> ---
>  Documentation/git-reset.txt | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
> index 132f8e55f6..dbf4e567a2 100644
> --- a/Documentation/git-reset.txt
> +++ b/Documentation/git-reset.txt
> @@ -428,11 +428,11 @@ working index HEAD target         working index HEAD
>  
>  `reset --merge` is meant to be used when resetting out of a conflicted
>  merge. Any mergy operation guarantees that the working tree file that is
> -involved in the merge does not have local change wrt the index before
> -it starts, and that it writes the result out to the working tree. So if
> -we see some difference between the index and the target and also
> -between the index and the working tree, then it means that we are not
> -resetting out from a state that a mergy operation left after failing
> +involved in the merge does not have a local change with respect to the
> +index before it starts, and that it writes the result out to the working
> +tree. So if we see some difference between the index and the target and
> +also between the index and the working tree, then it means that we are
> +not resetting out from a state that a mergy operation left after failing
>  with a conflict. That is why we disallow `--merge` option in this case.
>  
>  `reset --keep` is meant to be used when removing some of the last

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

* Re: [PATCH] git-reset.txt: clarify documentation
  2019-03-05 22:30 ` Junio C Hamano
@ 2019-03-05 22:37   ` Denton Liu
  2019-03-05 22:49     ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Denton Liu @ 2019-03-05 22:37 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Hi Junio,

On Wed, Mar 06, 2019 at 07:30:40AM +0900, Junio C Hamano wrote:
> Denton Liu <liu.denton@gmail.com> writes:
> 
> > git-reset.txt contained a missing "a" and "wrt". Fix the missing "a" for
> > correctness and replace "wrt" with "with respect to" so that the
> > documentation is not so cryptic.
> 
> Could you try again without unrelated reflowing of the text?
> 
> Thanks.

Should reflowing the text be done in a separate patch or should it just
not be done at all and just be considered noise?

Thanks,

Denton

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

* Re: [PATCH] git-reset.txt: clarify documentation
  2019-03-05 22:37   ` Denton Liu
@ 2019-03-05 22:49     ` Junio C Hamano
  0 siblings, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2019-03-05 22:49 UTC (permalink / raw)
  To: Denton Liu; +Cc: git

Denton Liu <liu.denton@gmail.com> writes:

> Should reflowing the text be done in a separate patch or should it just
> not be done at all and just be considered noise?

Of course when the rewrite is so extensive that the two versions of
the whole paragraph needs to be carefully read and compared to judge
if the change is desirable, reflowing of the paragraph would not
waste reviewer's time trying to spot where the change is and also
trying to verify there is no other change, and in such a case,
reflowing would be very much OK.

For this particular case, however, I would say it is the latter, as
the way I would have done it would look like either of these, which
would not leave the result any harder to read with unnaturally uneven
lines.

Thanks.


(variant #1)

 Documentation/git-reset.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index 132f8e55f6..26e746c53f 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -428,8 +428,8 @@ working index HEAD target         working index HEAD
 
 `reset --merge` is meant to be used when resetting out of a conflicted
 merge. Any mergy operation guarantees that the working tree file that is
-involved in the merge does not have local change wrt the index before
-it starts, and that it writes the result out to the working tree. So if
+involved in the merge does not have a local change with respect to the index
+before it starts, and that it writes the result out to the working tree. So if
 we see some difference between the index and the target and also
 between the index and the working tree, then it means that we are not
 resetting out from a state that a mergy operation left after failing



(variant #2)

 Documentation/git-reset.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index 132f8e55f6..e952b28305 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -428,7 +428,8 @@ working index HEAD target         working index HEAD
 
 `reset --merge` is meant to be used when resetting out of a conflicted
 merge. Any mergy operation guarantees that the working tree file that is
-involved in the merge does not have local change wrt the index before
+involved in the merge does not have a local change with respect to
+the index before
 it starts, and that it writes the result out to the working tree. So if
 we see some difference between the index and the target and also
 between the index and the working tree, then it means that we are not

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

* [PATCH v2] git-reset.txt: clarify documentation
  2019-03-05 18:54 [PATCH] git-reset.txt: clarify documentation Denton Liu
  2019-03-05 22:30 ` Junio C Hamano
@ 2019-03-05 23:34 ` Denton Liu
  1 sibling, 0 replies; 5+ messages in thread
From: Denton Liu @ 2019-03-05 23:34 UTC (permalink / raw)
  To: git; +Cc: gitster

git-reset.txt contained a missing "a" and "wrt". Fix the missing "a" for
correctness and replace "wrt" with "with respect to" so that the
documentation is not so cryptic.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
---

My mistake, I fired off the email before it was ready.

---
 Documentation/git-reset.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/git-reset.txt b/Documentation/git-reset.txt
index 132f8e55f6..e952b28305 100644
--- a/Documentation/git-reset.txt
+++ b/Documentation/git-reset.txt
@@ -428,7 +428,8 @@ working index HEAD target         working index HEAD
 
 `reset --merge` is meant to be used when resetting out of a conflicted
 merge. Any mergy operation guarantees that the working tree file that is
-involved in the merge does not have local change wrt the index before
+involved in the merge does not have a local change with respect to
+the index before
 it starts, and that it writes the result out to the working tree. So if
 we see some difference between the index and the target and also
 between the index and the working tree, then it means that we are not
-- 
2.21.0.260.g8f7229c82f


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

end of thread, other threads:[~2019-03-05 23:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05 18:54 [PATCH] git-reset.txt: clarify documentation Denton Liu
2019-03-05 22:30 ` Junio C Hamano
2019-03-05 22:37   ` Denton Liu
2019-03-05 22:49     ` Junio C Hamano
2019-03-05 23:34 ` [PATCH v2] " Denton Liu

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).