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

[PATCH v2 0/5] add "--keep" option to "git reset"

From
Christian Couder <chriscool@tuxfamily.org>
Date
Jan 19, 2010, 04:25 UTC
Message-ID
<20100119042404.4510.48855.chriscool@tuxfamily.org>
Changes since the previous series are the following:
- removed parts of the commit message that contrasted "--keep" with "--merge"
- improved wording in the documentation
- added a new patch to disallow "--keep" when there are unmerged entries
- added some tests for --keep in t7111-reset-table.sh
Christian Couder (5):
  reset: add option "--keep" to "git reset"
  reset: add test cases for "--keep" option
  Documentation: reset: describe new "--keep" option
  reset: disallow "reset --keep" outside a work tree
  reset: disallow using --keep when there are unmerged entries
 Documentation/git-reset.txt |   48 +++++++++++++++++-
 builtin-reset.c             |   46 ++++++++++++++---
 t/t7103-reset-bare.sh       |   25 ++++++---
 t/t7110-reset-merge.sh      |  116 ++++++++++++++++++++++++++++++++++++++++++-
 t/t7111-reset-table.sh      |    8 +++
 5 files changed, 223 insertions(+), 20 deletions(-)
Next: Christian Couder
Message 1 of 8 in “add "--keep" option to "git reset"”
  1. 0/5 add "--keep" option to "git reset"Christian Couder, Jan 19, 2010
  2. 1/5 reset: add option "--keep" to "git reset"Christian Couder, Jan 19, 2010
  3. Junio C HamanoJan 19, 2010
  4. Christian CouderJan 23, 2010
  5. 2/5 reset: add test cases for "--keep" optionChristian Couder, Jan 19, 2010
  6. 3/5 Documentation: reset: describe new "--keep" optionChristian Couder, Jan 19, 2010
  7. 4/5 reset: disallow "reset --keep" outside a work treeChristian Couder, Jan 19, 2010
  8. 5/5 reset: disallow using --keep when there are unmerged entriesChristian Couder, Jan 19, 2010

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.