Skip to content

rebase -i: add config to abbreviate command-names

Liam Beguin git 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 14 repliesIn review
  2. v2 posting 2/21 patch 12 repliesSuperseded
  3. v2 posting 1/21 patch 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch6 repliesSuperseded

Changes in v3 from the cover letter

- Transform a single patch into a series
- change option name from 'rebase.abbrevCmd' to 'rebase.abbreviateCommands'
- abbreviate all commands (not just pick)
- teach git rebase -i --autosquash to recognise single-letter command-names
- move rebase configuration documentation to Documentation/rebase-config.txt
- update Documentation to use the preferred naming for the todo list
- update Documentation and commit messages according to feedback

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6rebase -i: add abbreviated command-names handlinggit-rebase--interactive.sh+2 -21 reply
2/6rebase -i: add abbreviate_commands functiongit-rebase--interactive.sh+16 -01 reply
3/6rebase -i: add short command-name in --autosquashDocumentation/git-rebase.txt git-rebase--interactive.sh+4 -22 replies
4/6Documentation: move rebase.* config variables to a separate rebase-config.txtDocumentation/config.txt Documentation/git-rebase.txt Documentation/rebase-config.txt+32 -481 reply
5/6Documentation: use preferred name for the 'todo list' scriptDocumentation/rebase-config.txt+2 -20 replies
6/6Documentation: document the rebase.abbreviateCommands optionDocumentation/rebase-config.txt+23 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/6] rebase -i: add config to abbreviate command-names

Add the 'rebase.abbreviateCommands' configuration option to allow git rebase -i to default to the single-letter command-names in the todo list.

Using single-letter command-names can present two benefits. First, it makes it easier to change the action since you only need to replace a single character (i.e.: in vim "r<character>" instead of "ciw<character>").
Second, using this with a large enough value of 'core.abbrev' enables the lines of the todo list to remain aligned making the files easier to read.

Changes from v1 to v2:
- Improve Documentation and commit message

Changes from v2 to v3:
- Transform a single patch into a series
- change option name from 'rebase.abbrevCmd' to 'rebase.abbreviateCommands'
- abbreviate all commands (not just pick)
- teach git rebase -i --autosquash to recognise single-letter command-names
- move rebase configuration documentation to Documentation/rebase-config.txt
- update Documentation to use the preferred naming for the todo list
- update Documentation and commit messages according to feedback

Liam Beguin (6):
rebase -i: add abbreviated command-names handling rebase -i: add abbreviate_commands function
rebase -i: add short command-name in --autosquash
Documentation: move rebase.* config variables to a separate
rebase-config.txt
Documentation: use prefered name for the 'todo list' script
Documentation: document the rebase.abbreviateCommands option

 Documentation/config.txt        | 31 +-----------------------
 Documentation/git-rebase.txt    | 21 +++-------------
 Documentation/rebase-config.txt | 53 +++++++++++++++++++++++++++++++++++++++++
 git-rebase--interactive.sh      | 24 ++++++++++++++++++++----
 4 files changed, 78 insertions(+), 52 deletions(-)
 create mode 100644 Documentation/rebase-config.txt
Signature · 1 line
2.9.3