add-patch: classify '@' as a synonym for 'HEAD'
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest2 patches 1 replyIn review
- v52 patches 1 replySuperseded
- v43 patches 8 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 2 patches | 5 replies | Superseded | |
| v2 | 2 patches | 5 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | add-patch: classify '@' as a synonym for 'HEAD'add-patch.c builtin/ builtin/ +4 more | +65 | 0 replies | |
| 2/2 | add -p tests: remove PERL prerequisitest/ t/ t/ +3 more | +27 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Junio C Hamano | Phillip Wood |
|---|---|---|
| 1/2 | Helped-by | Helped-by |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/2] add-patch: classify '@' as a synonym for 'HEAD'
I just noticed after sending v5 that, in one of the tests, while moving it inside the loop for also testing '@', set_and_save_state was not used therefore the subsequent tests after the first $opt will not have the changes for which we prove 'y' thereby making the tests useless. (Although it would not fail regardless of this). This got unnoticed by the previous reviews since v1 and me as well.
Apologies for the oversight and noise.
Ghanshyam Thakkar (2):
add-patch: classify '@' as a synonym for 'HEAD'
add -p tests: remove PERL prerequisites
add-patch.c | 8 ------ builtin/checkout.c | 4 ++- builtin/reset.c | 4 ++- t/t2016-checkout-patch.sh | 46 +++++++++++++++++++--------------- t/t2020-checkout-detach.sh | 12 +++++++++ t/t2024-checkout-dwim.sh | 2 +- t/t2071-restore-patch.sh | 46 ++++++++++++++++++---------------- t/t3904-stash-patch.sh | 6 ----- t/t7105-reset-patch.sh | 38 +++++++++++++++------------- t/t7106-reset-unborn-branch.sh | 2 +- t/t7514-commit-patch.sh | 6 ----- 11 files changed, 92 insertions(+), 82 deletions(-)
change since v5:
t/t7105-reset-patch.sh +1 -0
@@ -29,6 +29,7 @@ test_expect_success PERL 'saying "n" does nothing' ' for opt in "HEAD" "@" "" do test_expect_success PERL "git reset -p $opt" ' + set_and_save_state dir/foo work work && test_write_lines n y | git reset -p $opt >output && verify_state dir/foo work head && verify_saved_state bar &&
Signature · 1 line
2.43.0