git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] [Outreachy] doc: fix a typo in gitcore-tutorial.txt
@ 2020-01-07 10:05 Heba Waly via GitGitGadget
  2020-01-07 10:05 ` [PATCH 1/1] " Heba Waly via GitGitGadget
  2020-01-08  0:31 ` [PATCH v2 0/1] [Outreachy] doc/gitcore-tutorial: fix prose to match example command Heba Waly via GitGitGadget
  0 siblings, 2 replies; 8+ messages in thread
From: Heba Waly via GitGitGadget @ 2020-01-07 10:05 UTC (permalink / raw)
  To: git; +Cc: Heba Waly, Junio C Hamano

Fix a typo.

Heba Waly (1):
  doc: fix a typo in gitcore-tutorial.txt

 Documentation/gitcore-tutorial.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 8679ef24ed64018bb62170c43ce73e0261c0600a
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-515%2FHebaWaly%2Fgitcore_tutorial_typo-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-515/HebaWaly/gitcore_tutorial_typo-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/515
-- 
gitgitgadget

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

* [PATCH 1/1] doc: fix a typo in gitcore-tutorial.txt
  2020-01-07 10:05 [PATCH 0/1] [Outreachy] doc: fix a typo in gitcore-tutorial.txt Heba Waly via GitGitGadget
@ 2020-01-07 10:05 ` Heba Waly via GitGitGadget
  2020-01-07 11:35   ` Eric Sunshine
  2020-01-08  0:31 ` [PATCH v2 0/1] [Outreachy] doc/gitcore-tutorial: fix prose to match example command Heba Waly via GitGitGadget
  1 sibling, 1 reply; 8+ messages in thread
From: Heba Waly via GitGitGadget @ 2020-01-07 10:05 UTC (permalink / raw)
  To: git; +Cc: Heba Waly, Junio C Hamano, Heba Waly

From: Heba Waly <heba.waly@gmail.com>

Signed-off-by: Heba Waly <heba.waly@gmail.com>
---
 Documentation/gitcore-tutorial.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/gitcore-tutorial.txt b/Documentation/gitcore-tutorial.txt
index f880d21dfb..c0b95256cc 100644
--- a/Documentation/gitcore-tutorial.txt
+++ b/Documentation/gitcore-tutorial.txt
@@ -751,7 +751,7 @@ to it.
 ================================================
 If you make the decision to start your new branch at some
 other point in the history than the current `HEAD`, you can do so by
-just telling 'git checkout' what the base of the checkout would be.
+just telling 'git switch' what the base of the checkout would be.
 In other words, if you have an earlier tag or branch, you'd just do
 
 ------------
-- 
gitgitgadget

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

* Re: [PATCH 1/1] doc: fix a typo in gitcore-tutorial.txt
  2020-01-07 10:05 ` [PATCH 1/1] " Heba Waly via GitGitGadget
@ 2020-01-07 11:35   ` Eric Sunshine
  2020-01-07 19:58     ` Junio C Hamano
  2020-01-08  0:09     ` Heba Waly
  0 siblings, 2 replies; 8+ messages in thread
From: Eric Sunshine @ 2020-01-07 11:35 UTC (permalink / raw)
  To: Heba Waly via GitGitGadget; +Cc: Git List, Heba Waly, Junio C Hamano

On Tue, Jan 7, 2020 at 5:06 AM Heba Waly via GitGitGadget
<gitgitgadget@gmail.com> wrote:
> doc: fix a typo in gitcore-tutorial.txt
>
> Signed-off-by: Heba Waly <heba.waly@gmail.com>
> ---
> diff --git a/Documentation/gitcore-tutorial.txt b/Documentation/gitcore-tutorial.txt
> @@ -751,7 +751,7 @@ to it.
>  ================================================
>  If you make the decision to start your new branch at some
>  other point in the history than the current `HEAD`, you can do so by
> -just telling 'git checkout' what the base of the checkout would be.
> +just telling 'git switch' what the base of the checkout would be.

Calling this change a "typo fix" confuses reviewers since it's clearly
not a mere typographical error. It looks instead as if you are
recommending git-switch over git-checkout, so a reader would expect
the commit message to justify that change rather than merely calling
it a "typo fix". However, digging deeper, one finds that this is
actually fixing an oversight from an earlier change which already
updated this file to prefer git-switch over git-checkout.

To save reviewers the time and effort of having to figure all this
out, use the commit message to explain the situation. For example, you
might say:

    doc/gitcore-tutorial: fix prose to match example command

    In 328c6cb853 (doc: promote "git switch", 2019-03-29), an example
    was changed to use "git switch" rather than "git checkout" but an
    instance of "git checkout" in the explanatory text preceding the
    example was overlooked. Fix this oversight.

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

* Re: [PATCH 1/1] doc: fix a typo in gitcore-tutorial.txt
  2020-01-07 11:35   ` Eric Sunshine
@ 2020-01-07 19:58     ` Junio C Hamano
  2020-01-08  0:09     ` Heba Waly
  1 sibling, 0 replies; 8+ messages in thread
From: Junio C Hamano @ 2020-01-07 19:58 UTC (permalink / raw)
  To: Eric Sunshine; +Cc: Heba Waly via GitGitGadget, Git List, Heba Waly

Eric Sunshine <sunshine@sunshineco.com> writes:

> To save reviewers the time and effort of having to figure all this
> out, use the commit message to explain the situation. For example, you
> might say:
>
>     doc/gitcore-tutorial: fix prose to match example command
>
>     In 328c6cb853 (doc: promote "git switch", 2019-03-29), an example
>     was changed to use "git switch" rather than "git checkout" but an
>     instance of "git checkout" in the explanatory text preceding the
>     example was overlooked. Fix this oversight.

Thanks for a ncie educational session ;-)

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

* Re: [PATCH 1/1] doc: fix a typo in gitcore-tutorial.txt
  2020-01-07 11:35   ` Eric Sunshine
  2020-01-07 19:58     ` Junio C Hamano
@ 2020-01-08  0:09     ` Heba Waly
  1 sibling, 0 replies; 8+ messages in thread
From: Heba Waly @ 2020-01-08  0:09 UTC (permalink / raw)
  To: Eric Sunshine; +Cc: Heba Waly via GitGitGadget, Git List, Junio C Hamano

On Wed, Jan 8, 2020 at 12:35 AM Eric Sunshine <sunshine@sunshineco.com> wrote:
>
>
> Calling this change a "typo fix" confuses reviewers since it's clearly
> not a mere typographical error. It looks instead as if you are
> recommending git-switch over git-checkout, so a reader would expect
> the commit message to justify that change rather than merely calling
> it a "typo fix". However, digging deeper, one finds that this is
> actually fixing an oversight from an earlier change which already
> updated this file to prefer git-switch over git-checkout.
>
> To save reviewers the time and effort of having to figure all this
> out, use the commit message to explain the situation. For example, you
> might say:
>
>     doc/gitcore-tutorial: fix prose to match example command
>
>     In 328c6cb853 (doc: promote "git switch", 2019-03-29), an example
>     was changed to use "git switch" rather than "git checkout" but an
>     instance of "git checkout" in the explanatory text preceding the
>     example was overlooked. Fix this oversight.

Looks like I overlooked this commit for its simplicity, I thought it
was too simple and self explanatory. I agree with you though.

Thanks,
Heba

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

* [PATCH v2 0/1] [Outreachy] doc/gitcore-tutorial: fix prose to match example command
  2020-01-07 10:05 [PATCH 0/1] [Outreachy] doc: fix a typo in gitcore-tutorial.txt Heba Waly via GitGitGadget
  2020-01-07 10:05 ` [PATCH 1/1] " Heba Waly via GitGitGadget
@ 2020-01-08  0:31 ` Heba Waly via GitGitGadget
  2020-01-08  0:31   ` [PATCH v2 1/1] " Heba Waly via GitGitGadget
  1 sibling, 1 reply; 8+ messages in thread
From: Heba Waly via GitGitGadget @ 2020-01-08  0:31 UTC (permalink / raw)
  To: git; +Cc: Heba Waly, Junio C Hamano

In 328c6cb853 (doc: promote "git switch", 2019-03-29), an example was
changed to use "git switch" rather than "git checkout" but an instance of
"git checkout" in the explanatory text preceding the example was overlooked.
Fix this oversight.

Heba Waly (1):
  doc/gitcore-tutorial: fix prose to match example command

 Documentation/gitcore-tutorial.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 8679ef24ed64018bb62170c43ce73e0261c0600a
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-515%2FHebaWaly%2Fgitcore_tutorial_typo-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-515/HebaWaly/gitcore_tutorial_typo-v2
Pull-Request: https://github.com/gitgitgadget/git/pull/515

Range-diff vs v1:

 1:  ee8636e0ed ! 1:  0c75cd8f97 doc: fix a typo in gitcore-tutorial.txt
     @@ -1,6 +1,11 @@
      Author: Heba Waly <heba.waly@gmail.com>
      
     -    doc: fix a typo in gitcore-tutorial.txt
     +    doc/gitcore-tutorial: fix prose to match example command
     +
     +    In 328c6cb853 (doc: promote "git switch", 2019-03-29), an example
     +    was changed to use "git switch" rather than "git checkout" but an
     +    instance of "git checkout" in the explanatory text preceding the
     +    example was overlooked. Fix this oversight.
      
          Signed-off-by: Heba Waly <heba.waly@gmail.com>
      

-- 
gitgitgadget

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

* [PATCH v2 1/1] doc/gitcore-tutorial: fix prose to match example command
  2020-01-08  0:31 ` [PATCH v2 0/1] [Outreachy] doc/gitcore-tutorial: fix prose to match example command Heba Waly via GitGitGadget
@ 2020-01-08  0:31   ` Heba Waly via GitGitGadget
  2020-01-08 16:57     ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Heba Waly via GitGitGadget @ 2020-01-08  0:31 UTC (permalink / raw)
  To: git; +Cc: Heba Waly, Junio C Hamano, Heba Waly

From: Heba Waly <heba.waly@gmail.com>

In 328c6cb853 (doc: promote "git switch", 2019-03-29), an example
was changed to use "git switch" rather than "git checkout" but an
instance of "git checkout" in the explanatory text preceding the
example was overlooked. Fix this oversight.

Signed-off-by: Heba Waly <heba.waly@gmail.com>
---
 Documentation/gitcore-tutorial.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/gitcore-tutorial.txt b/Documentation/gitcore-tutorial.txt
index f880d21dfb..c0b95256cc 100644
--- a/Documentation/gitcore-tutorial.txt
+++ b/Documentation/gitcore-tutorial.txt
@@ -751,7 +751,7 @@ to it.
 ================================================
 If you make the decision to start your new branch at some
 other point in the history than the current `HEAD`, you can do so by
-just telling 'git checkout' what the base of the checkout would be.
+just telling 'git switch' what the base of the checkout would be.
 In other words, if you have an earlier tag or branch, you'd just do
 
 ------------
-- 
gitgitgadget

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

* Re: [PATCH v2 1/1] doc/gitcore-tutorial: fix prose to match example command
  2020-01-08  0:31   ` [PATCH v2 1/1] " Heba Waly via GitGitGadget
@ 2020-01-08 16:57     ` Junio C Hamano
  0 siblings, 0 replies; 8+ messages in thread
From: Junio C Hamano @ 2020-01-08 16:57 UTC (permalink / raw)
  To: Heba Waly via GitGitGadget; +Cc: git, Heba Waly

"Heba Waly via GitGitGadget" <gitgitgadget@gmail.com> writes:

> From: Heba Waly <heba.waly@gmail.com>
>
> In 328c6cb853 (doc: promote "git switch", 2019-03-29), an example
> was changed to use "git switch" rather than "git checkout" but an
> instance of "git checkout" in the explanatory text preceding the
> example was overlooked. Fix this oversight.
>
> Signed-off-by: Heba Waly <heba.waly@gmail.com>
> ---
>  Documentation/gitcore-tutorial.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/gitcore-tutorial.txt b/Documentation/gitcore-tutorial.txt
> index f880d21dfb..c0b95256cc 100644
> --- a/Documentation/gitcore-tutorial.txt
> +++ b/Documentation/gitcore-tutorial.txt
> @@ -751,7 +751,7 @@ to it.
>  ================================================
>  If you make the decision to start your new branch at some
>  other point in the history than the current `HEAD`, you can do so by
> -just telling 'git checkout' what the base of the checkout would be.
> +just telling 'git switch' what the base of the checkout would be.
>  In other words, if you have an earlier tag or branch, you'd just do
>  
>  ------------

Thanks.  The part before this paragraph does illustrate the use of
"switch", and we should talk about that command here, too.


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

end of thread, other threads:[~2020-01-08 16:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-07 10:05 [PATCH 0/1] [Outreachy] doc: fix a typo in gitcore-tutorial.txt Heba Waly via GitGitGadget
2020-01-07 10:05 ` [PATCH 1/1] " Heba Waly via GitGitGadget
2020-01-07 11:35   ` Eric Sunshine
2020-01-07 19:58     ` Junio C Hamano
2020-01-08  0:09     ` Heba Waly
2020-01-08  0:31 ` [PATCH v2 0/1] [Outreachy] doc/gitcore-tutorial: fix prose to match example command Heba Waly via GitGitGadget
2020-01-08  0:31   ` [PATCH v2 1/1] " Heba Waly via GitGitGadget
2020-01-08 16:57     ` Junio C Hamano

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).