tj.git-extras/bin
Austin Ziegler 49650eda62
git-feature: add configurable branch separator (#1072)
* git-feature: add configurable branch separator

Closes #1069

This allows the use of a separator other than `/` for feature or other
alias branches. While a command-line option has been provided (`-s` or
`--separator`), this will most often be used via
`git-extras.feature.separator`.

* Significant update to bin/git-feature

- Changed option parsing so that `--alias` requires an argument and will
  fail with an error unless provided. Applied the same logic to
  `--separator`.

- Changed `finish` parsing to capture it as a variable flag during
  argument parsing.

  This could be extended so that if `finish` is already true, a second
  `finish` results in the word being added to the argument list.

  ```console
  $ git feature -- finish remote
  $ git feature finish finish remote
  ```

  This has not been done because it is a bit of an inconsistent handling
  for documentation purposes.

- Add handling of `--` to permit options or `finish` to be made part of
  the feature branch name.

- Since `finish` is now a variable flag, simplify the name-building
  logic to always use `concatargs "${argv[@]}"`. This means that
  `git feature finish ...` and `git feature ...` behave the same in
  terms of feature branch name building.

- Basically rewrote the man page to include better descriptions of the
  options as well as adding a GIT CONFIG section and additional EXAMPLES
  for the new features/behaviour.
2023-09-19 11:10:59 +08:00
..
git-abort Include revert conflicts in git abort (#992) 2022-10-06 13:26:20 +08:00
git-alias abort git-alias when too many arguments given. 2015-08-09 19:27:49 +08:00
git-archive-file git archive-file: change base ARCHIVE_NAME (#1071) 2023-09-13 13:01:37 +08:00
git-authors fix: Improve Bash hygiene (#1056) 2023-08-18 16:15:40 +08:00
git-browse chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-browse-ci chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-brv chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-bulk I have made two improvements to the git-bulk: (#1054) 2023-07-07 11:08:23 +08:00
git-changelog fix: Improve Bash hygiene (#1056) 2023-08-18 16:15:40 +08:00
git-clear chore: Improve quoting and builtin usage (#1015) 2023-01-04 08:58:31 +08:00
git-clear-soft Add typo checker 2023-06-19 21:51:53 +08:00
git-coauthor git-coauthor: quote variable in the comparison 2019-12-20 18:22:06 +08:00
git-commits-since chore: More Bash improvements and removing deprecations (#1016) 2023-01-10 08:59:43 +08:00
git-contrib adding a format for git-contrib 2020-11-08 20:21:32 +08:00
git-count chore: More Bash improvements and removing deprecations (#1016) 2023-01-10 08:59:43 +08:00
git-cp git-cp: continue to merge when merge.ff is only (#1070) 2023-09-13 13:02:06 +08:00
git-create-branch chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-delete-branch chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-delete-merged-branches chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-delete-squashed-branches chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-delete-submodule chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-delete-tag git-delete-tag: should not be quoted 2023-03-07 09:11:37 +08:00
git-delta chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-effort chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-extras Bump version to 7.1.0-dev (#1041) 2023-04-26 10:29:51 +08:00
git-feature git-feature: add configurable branch separator (#1072) 2023-09-19 11:10:59 +08:00
git-force-clone chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-fork chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-fresh-branch chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-get feat: Implement git-get command (#1045) 2023-08-12 13:49:33 +08:00
git-gh-pages chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-graft chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-guilt fix: Improve Bash hygiene (#1056) 2023-08-18 16:15:40 +08:00
git-ignore Improve git-ignore command (#1047) 2023-07-13 14:29:39 +08:00
git-ignore-io chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-info chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-local-commits chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-lock fix git (un)lock with spaced filenames 2021-08-10 14:17:33 +02:00
git-locked More portable she-bangs. 2014-11-30 17:47:26 +05:30
git-magic chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-merge-into Merge-into: add stash before to checkout 2020-11-16 11:33:59 +01:00
git-merge-repo chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-missing git-missing: do proper argument parsing. Fix #562 2016-08-06 03:04:01 +02:00
git-mr chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-obliterate fix various typos 2017-06-18 20:22:11 +08:00
git-paste git-paste: check pastebinit before running it 2019-12-20 22:08:02 +08:00
git-pr chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-psykorebase git-psykorebase: determine branch names with bash pattern substitution (#1073) 2023-09-17 22:07:32 +08:00
git-pull-request fix base branch in the pull-request command (#1003) 2022-11-12 12:10:57 +08:00
git-reauthor Add git reauthor (#548) 2016-08-02 19:41:56 +02:00
git-rebase-patch fix: Improve Bash hygiene (#1056) 2023-08-18 16:15:40 +08:00
git-release chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-rename-branch chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-rename-remote chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-rename-tag chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-repl chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-reset-file chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-root git root: show '.' when using with -r in the root dir (#995) 2022-10-06 13:56:07 +08:00
git-rscp symlink git-rscp to git-scp 2015-01-19 12:27:56 +08:00
git-scp fix: Improve Bash hygiene (#1056) 2023-08-18 16:15:40 +08:00
git-sed chore: Remove X-style equality comparisons (#1028) 2023-02-03 09:41:52 +08:00
git-setup Add -m flag to git-setup to set the initial commit message. 2016-03-03 01:12:19 -05:00
git-show-merged-branches chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-show-tree More portable she-bangs. 2014-11-30 17:47:26 +05:30
git-show-unmerged-branches chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-squash change: migrate default branch 2020-09-23 16:19:41 +08:00
git-stamp chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-standup Add typo checker 2023-06-19 21:51:53 +08:00
git-summary fix: Improve Bash hygiene (#1056) 2023-08-18 16:15:40 +08:00
git-sync chore: Various Bash improvements (#1029) 2023-02-03 09:41:36 +08:00
git-touch chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
git-undo chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00
git-unlock fix git (un)lock with spaced filenames 2021-08-10 14:17:33 +02:00
git-utimes chore: Improve Bash variously (#1032) 2023-02-21 10:03:56 +08:00