git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gittutorial: fix output of 'git status'

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 13, 2014, 16:38 UTC
Message-ID
<xmqqppcr2gyp.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1415875207-5992-1-git-send-email-stefan.naewe@atlas-elektronik.com>
<stefan.naewe@atlas-elektronik.com> writes:
Show 6 quoted lines
> From: Stefan Naewe <stefan.naewe@gmail.com>
>
> 'git status' doesn't output leading '#'s these days.
>
> Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>
> ---
Thanks, will queue.
Show 66 quoted lines
>  Documentation/gittutorial-2.txt | 23 ++++++++++++-----------
>  Documentation/gittutorial.txt   | 17 +++++++++--------
>  2 files changed, 21 insertions(+), 19 deletions(-)
>
> diff --git a/Documentation/gittutorial-2.txt b/Documentation/gittutorial-2.txt
> index 3109ea8..1901af7 100644
> --- a/Documentation/gittutorial-2.txt
> +++ b/Documentation/gittutorial-2.txt
> @@ -368,17 +368,18 @@ situation:
>  
>  ------------------------------------------------
>  $ git status
> -# On branch master
> -# Changes to be committed:
> -#   (use "git reset HEAD <file>..." to unstage)
> -#
> -#       new file: closing.txt
> -#
> -# Changes not staged for commit:
> -#   (use "git add <file>..." to update what will be committed)
> -#
> -#       modified: file.txt
> -#
> +On branch master
> +Changes to be committed:
> +  (use "git reset HEAD <file>..." to unstage)
> +
> +        new file:   closing.txt
> +
> +Changes not staged for commit:
> +  (use "git add <file>..." to update what will be committed)
> +  (use "git checkout -- <file>..." to discard changes in working directory)
> +
> +        modified:   file.txt
> +
>  ------------------------------------------------
>  
>  Since the current state of closing.txt is cached in the index file,
> diff --git a/Documentation/gittutorial.txt b/Documentation/gittutorial.txt
> index 8262196..8715244 100644
> --- a/Documentation/gittutorial.txt
> +++ b/Documentation/gittutorial.txt
> @@ -107,14 +107,15 @@ summary of the situation with 'git status':
>  
>  ------------------------------------------------
>  $ git status
> -# On branch master
> -# Changes to be committed:
> -#   (use "git reset HEAD <file>..." to unstage)
> -#
> -#	modified:   file1
> -#	modified:   file2
> -#	modified:   file3
> -#
> +On branch master
> +Changes to be committed:
> +Your branch is up-to-date with 'origin/master'.
> +  (use "git reset HEAD <file>..." to unstage)
> +
> +        modified:   file1
> +        modified:   file2
> +        modified:   file3
> +
>  ------------------------------------------------
>  
>  If you need to make any further adjustments, do so now, and then add any
Previous: stefan.naewe@atlas-elektronik.com
Message 2 of 2 in “gittutorial: fix output of 'git status'”
  1. gittutorial: fix output of 'git status'stefan.naewe@atlas-elektronik.com, Nov 13, 2014
  2. Junio C HamanoNov 13, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.