RFC tag: fix --edit and --no-edit flags
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tag: factor out tag reading from write_tag_body()builtin/ | +34 | 2 replies | |
| 2/3 | tag: factor out prepare tag template codebuiltin/ | +39 | 3 replies | |
| 3/3 | tag: add full support for --edit and --no-editbuiltin/ t/ | +15 | 2 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by.
| Patch | Bárbara Fernandes | Matheus Tavares |
|---|---|---|
| 1/3 | Co-authored-by | Helped-by |
| 2/3 | Co-authored-by | Helped-by |
| 3/3 | Co-authored-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC WIP PATCH 0/3] tag: fix --edit and --no-edit flags
This series of patches fixes the flags --edit and --no-edit. Currently, --no-edit has no effect.
These patches implement the following behaviour:
- when --edit is provided, the editor will always be opened;
- when --no-edit is provided, the editor will not be opened (if possible), otherwise an error message will be displayed;
- when neither --edit nor --no-edit are provided, the editor is opened only if a message is not provided and there isn't a previous tag message.
In the future, the fix of these flags and the code factoring done in this patchset will be used on the implementation of a new flag --amend, as discussed on the mail thread started on
https://public-inbox.org/git/CAHd499BM6M+=zRE1WFVXr7b+VhJHFeDind5xLqXcwZLv7QeDvw@mail.gmail.com/.
Lucas Oshiro (3):
tag: factor out tag reading from write_tag_body()
tag: factor out prepare tag template code
tag: add full support for --edit and --no-edit
builtin/tag.c | 123 ++++++++++++++++++++++++++++++++++--------------- t/t7004-tag.sh | 4 +- 2 files changed, 88 insertions(+), 39 deletions(-)
Signature · 1 line
2.23.0