Skip to content

Fix "git reset" on unborn branch

Martin von Zweigbergk git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2reset: learn to reset to treebuiltin/reset.c t/t1512-rev-parse-disambiguation.sh t/t7102-reset.sh+65 -3210 replies
2/2reset: learn to reset on unborn branchbuiltin/reset.c t/t7106-reset-unborn-branch.sh+59 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC/PATCH 0/2] Fix "git reset" on unborn branch

I decided to address this before "cherry-pick on unborn branch". RFC mostly because I'm not sure about the user interface. When we have agreed on that, I will add documentation.

Martin von Zweigbergk (2):
reset: learn to reset to tree
reset: learn to reset on unborn branch

 builtin/reset.c                     | 73 ++++++++++++++++++++++---------------
 t/t1512-rev-parse-disambiguation.sh |  4 --
 t/t7102-reset.sh                    | 26 +++++++++++++
 t/t7106-reset-unborn-branch.sh      | 52 ++++++++++++++++++++++++++
 4 files changed, 122 insertions(+), 33 deletions(-)
 create mode 100755 t/t7106-reset-unborn-branch.sh
Signature · 1 line
1.8.0.1.240.ge8a1f5a