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

[PATCH v2 0/3] commit --dry-run

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 8, 2009, 07:14 UTC
Message-ID
<1249715693-9715-1-git-send-email-gitster@pobox.com>

This is a re-roll of the commit in the jc/shortstatus series that has been kept out of 'pu'.

First, we introduce "git commit --dry-run", which does exactly the same thing as the current "git status". A longer term goal of this change is so that we could make "git status" behave completely differently after an ample warning period.

The second commit introduces a new "git status" under a tentative name "git stat". In this step, it does not do anything interesting, other than that it ignores the path parameters.

The third commit adds "-s" option to the new command, to give the "short" output format.

Probably the next round should insert a commit between the second one and the third one to take pathspec parameters that are used as path limiters, but I am too tired for doing that myself tonight.

Junio C Hamano (3):
  commit: --dry-run
  git stat: the beginning
  git stat -s: short status output
 Documentation/git-commit.txt |    7 ++-
 Makefile                     |    1 +
 builtin-commit.c             |  163 ++++++++++++++++++++++++++++++++++++------
 builtin.h                    |    1 +
 git.c                        |    1 +
 wt-status.c                  |   24 ++++---
 wt-status.h                  |    1 +
 7 files changed, 165 insertions(+), 33 deletions(-)
Next: Junio C Hamano
Message 1 of 5 in “commit --dry-run”
  1. 0/3 commit --dry-runJunio C Hamano, Aug 8, 2009
  2. 1/3 commit: --dry-runJunio C Hamano, Aug 8, 2009
  3. 2/3 git stat: the beginningJunio C Hamano, Aug 8, 2009
  4. 3/3 git stat -s: short status outputJunio C Hamano, Aug 8, 2009
  5. Sverre RabbelierAug 8, 2009

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.