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

[PATCH v2 0/4] "git reset --merge" related improvements

From
Christian Couder <chriscool@tuxfamily.org>
Date
Sep 16, 2009, 04:14 UTC
Message-ID
<20090916035131.3737.33020.chriscool@tuxfamily.org>

In this new version, the test cases that were bogus are now fixed. And the new "git reset" option is now called "--merge-safe" (instead of "--merge-dirty").

To make the test cases pass I had to change a little bit the way "--merge-safe" is implemented. It now does not set the "reset" flag in the "struct unpack_trees_options" passed to "unpack_trees()".

And commit messages have been improved, thanks to input from Daniel, Junio and Linus. And there is no more "exec </dev/null" in the test script, thanks to Jakub.

I prefer to keep Stephan as the author of patch 3/4 because he designed and implemented the new feature in the first place.

I am working on the documentation for "--merge-safe" and on improving the existing "git reset" documentation using a table at the same time. So another patch will be added to this series later.

Christian Couder (2):
  reset: add a few tests for "git reset --merge"
  reset: add test cases for "--merge-safe" option
Stephan Beyer (2):
  reset: use "unpack_trees()" directly instead of "git read-tree"
  reset: add option "--merge-safe" to "git reset"
 builtin-reset.c        |   81 ++++++++++++++++++++++++++++-------
 t/t7110-reset-merge.sh |  112 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 177 insertions(+), 16 deletions(-)
 create mode 100755 t/t7110-reset-merge.sh
Next: Christian Couder
Message 1 of 8 in “"git reset --merge" related improvements”
  1. 0/4 "git reset --merge" related improvementsChristian Couder, Sep 16, 2009
  2. 1/4 reset: add a few tests for "git reset --merge"Christian Couder, Sep 16, 2009
  3. 2/4 reset: use "unpack_trees()" directly instead of "git read-tree"Christian Couder, Sep 16, 2009
  4. 3/4 reset: add option "--merge-safe" to "git reset"Christian Couder, Sep 16, 2009
  5. Junio C HamanoSep 16, 2009
  6. Christian CouderSep 17, 2009
  7. Junio C HamanoSep 17, 2009
  8. 4/4 reset: add test cases for "--merge-safe" optionChristian Couder, Sep 16, 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.