Commit graph

868 commits

Author SHA1 Message Date
vyas 73bb1e0f59 Remove $user 2020-08-06 13:06:28 +05:30
vyas 238038139d corrections 2020-08-06 13:03:13 +05:30
vyas a0d7039482 fix config message name 2020-08-05 16:22:44 +05:30
vyas 49a34037ad Remove comments 2020-08-05 16:19:51 +05:30
vyas 2dc9c26e36 PR test 2020-08-05 11:59:43 +05:30
罗泽轩 6e77d950eb
Merge pull request #853 from bethesque/feat/git-browse-with-multiple-remotes
feat(browse): select remote of current branch, fallback to origin
2020-07-27 09:24:28 +08:00
Beth Skurrie 572ae0dd46
feat(browse): automatically select origin remote if one exists, fallback to first otherwise 2020-07-26 08:22:43 +10:00
Beth Skurrie edf7b060d2
fix(browse): update sed pattern to work on mac 2020-06-23 09:31:21 +10:00
spacewander 2076ac9c38 Bump version to 6.1.0-dev 2020-06-22 21:31:49 +08:00
spacewander 4c9d59059e Version 6.0.0 2020-06-22 11:18:23 +08:00
spacewander a994411e58 git-cp: remove trailing space 2020-06-22 09:59:59 +08:00
vr8ce 27f42beb81 Tighten numeric regex 2020-06-19 22:56:55 -05:00
vr8ce 6ccd2fa439 Cleanup code 2020-06-18 23:38:55 -05:00
vr8ce 9dca93eeb2 Modify to work when only a single commit, add parameter checks 2020-06-17 20:11:07 -05:00
Caleb Maclennan db9ca55c71
Remove scripts that are mere alias wrappers for git-feature
Notably `git-bug` clobbers a very popular other project of the same name.
Having lightweight wrapper scripts clogging up the subcommand namespace
makes it awkward to make use of this project wholesale instead of
piecemeal. These function can be implemented by users with git aliases
very easily.
2020-05-30 15:32:01 +03:00
罗泽轩 852e630314
Merge pull request #840 from spacewander/archive-invalid
git-archive-file: rename invalid chars in the output filename
2020-05-27 09:14:57 +08:00
spacewander 8f133a32ba git-archive-file: rename invalid chars in the output filename
Fix #838.
2020-05-22 10:40:29 +08:00
罗泽轩 4eb4e7ffdb
Merge pull request #837 from jldugger/jldugger/pr-remote-default
add a default for the remote to fetch a pr from
2020-05-16 12:12:21 +08:00
Justin Dugger 9e843da98d add a default for the remote to fetch a pr from 2020-05-14 00:32:48 -07:00
Justin Dugger e8ee36733f add a config setting for prefix 2020-05-14 00:19:54 -07:00
Carlos Prado 63eaba4572 add squash option to git-feature 2020-04-04 00:27:58 +02:00
Rémy HUBSCHER 91b3e47243
Simplify the code. 2020-03-20 14:11:17 +01:00
Rémy HUBSCHER b85fc019ca
Signal if the destination already exists. 2020-03-20 09:43:24 +01:00
Rémy HUBSCHER 2c9b071fde
@spacewander review. 2020-03-20 09:37:43 +01:00
Rémy HUBSCHER bea25d1ceb
@mschneiderwind review. 2020-03-19 16:11:39 +01:00
Rémy HUBSCHER 629fc03581
Add first version of git-cp 2020-03-19 15:49:07 +01:00
Mark Pitman f6cf59c380 Implement suggested changes from code review
Use bash string replacement instead of sed for simple replacement
Use http URLs instead of https (sites that reuqire https should be
auto-redirecting anyway)

 #666
2020-03-17 21:12:07 -07:00
Mark Pitman 362a0c29ae Add git-browse command
Handles git@server and https://server remotes.
Allows specification of the remote to open
Closes #666
2020-03-15 01:40:09 -07:00
spacewander 3917c774ec change: deprecate git-back
Thanks @vr8hub for the report.

git-back will be removed in the next next release.
2020-02-23 11:41:54 +08:00
Brice Dutheil 80cd52701e
Fixes #770: Adds git-brv 2020-01-15 10:46:19 +01:00
spacewander 4b9f1619f6 git-sed: limit paths via pathspec 2020-01-03 18:22:34 +08:00
spacewander 6438dee914 Bump version to 5.2.0-dev. 2019-12-23 18:28:13 +08:00
spacewander 2a65a7aa8b Version 5.1.0 2019-12-21 13:53:03 +08:00
spacewander 2067d26276 git-bulk: support cloning from a relative path 2019-12-21 13:35:59 +08:00
spacewander aefa3c9ff6 git-standuo: clarify the -a option 2019-12-21 13:12:10 +08:00
spacewander 3b2f6611d6 git-paste: check pastebinit before running it
We don't force to install pastebinit because it is not widely used in
git-extras.
2019-12-20 22:08:02 +08:00
spacewander ecff5e1a3c git-coauthor: quote variable in the comparison 2019-12-20 18:22:06 +08:00
spacewander eb33c9bf5a git-bulk: don't disappoint shellcheck 2019-12-20 18:21:29 +08:00
spacewander 4d5b53aea2 git-sed: escape special characters for tr
Some special patterns like `n-l`, `[:alpha:]` need to be escaped to avoid
confusing tr.
2019-12-16 22:19:30 +08:00
Roshak Zarhoun 16bb0df9f9 add repositories to workspace from source (#804)
* make addworkspace clone multiple repositories into ws from list of URLs in a file

* extend usage

* check if source is file or URL

* update Commands.md

* checked allwedargcount function

* resolved merge conflicts and change requests

* update manuals

* change the order of error and usage in allwedargcount()

* improve URL matcher. include also SSH protocol
2019-12-10 21:57:32 +08:00
Christophe Badoit 41ebe0e0bf git-ignore: support non-default .git directory
useful for submodules.

Closes tj/git-extras#807
2019-12-06 17:23:19 +01:00
罗泽轩 29f6d0e0e0
Merge pull request #802 from spacewander/fix-git-bulk-arg-count
fix bug in allowedargcount() to not execute command if wrong args count
2019-12-05 18:26:57 +08:00
roxchgt 45647fdab3 fix bug in allowedargcount() to not execute command if wrong args count 2019-12-01 11:33:59 +08:00
罗泽轩 67c2bf595f
Merge pull request #801 from spacewander/fix-delete-submodule
git-delete-submodule: don't remove the history of deleted submodule
2019-12-01 11:31:22 +08:00
spacewander 4d4b87ccb8 git-delete-submodule: don't remove the history of deleted submodule
This hurted 'git blame' and other git operation which relies on history.

Fix #799.
2019-11-29 17:43:22 +08:00
Tom Andrade 704b1b4fdd Add flags -s and -u for signed tags 2019-11-26 08:31:06 +01:00
罗泽轩 a6a1754093
Merge pull request #795 from spacewander/git-squash-commit-msg
Git squash commit msg
2019-11-05 18:12:43 +08:00
罗泽轩 b0d3a77ac0
Merge pull request #793 from spacewander/git-standup-group-by-branch
git-standup: add option '-B' to group the commits by branch
2019-11-05 17:57:49 +08:00
spacewander f4e313d3f2 git-squash: clean up shellcheck warnings 2019-11-05 10:30:37 +08:00
spacewander 1924eb9197 git-squash: add --squash-messages to concat commit messages into one. 2019-11-05 10:28:51 +08:00
spacewander 952d1eb76f git-standup: add option to limit the number of commit 2019-11-04 11:36:29 +08:00
spacewander 677f570f34 git-delete-submodule: comment the DUMMY prefix and ignore the output of grep -v. 2019-11-03 11:30:03 +08:00
spacewander 227c19bb67 git-standup: add separate newline between the output 2019-11-03 10:53:40 +08:00
go2null 1f605df053 add PR changes 2019-11-02 04:32:36 -04:00
go2null 17d1a471a4 add --force option to continue on error 2019-11-02 04:32:36 -04:00
go2null f00c1389d6 improve readability 2019-11-02 04:32:36 -04:00
go2null 4f35f8cad8 display git submodule status output before exiting 2019-11-02 04:32:36 -04:00
go2null 5ea4a626a6 check git submodule status before declaring success 2019-11-02 04:32:36 -04:00
go2null 4bb273a802 reorganize flow 2019-11-02 04:32:36 -04:00
go2null 4a47ea034b delete empty .gitmodules 2019-11-02 04:32:36 -04:00
spacewander 7b9fbc4389 git-standup: add option '-B' to group the commits by branch 2019-11-01 17:32:55 +08:00
spacewander f788c789f3 git-summary: clean up other shellcheck warnings 2019-10-31 18:30:46 +08:00
spacewander 3e8c3ab0c4 git-summary: fix incorrect active days when commits range is given
Previous when commits range is given, we count the active days of whole
history because we didn't pass the argument.
2019-10-31 17:56:41 +08:00
spacewander ff991ac99e git-summary: remove useless result function.
This function was introduced when merging `bin/git-line-summary` into
`bin/git-summary`.
2019-10-31 17:56:41 +08:00
spacewander 203f5b48ad git-summary: add --dedup-by-email to remove duplicate users 2019-10-27 09:04:27 +08:00
Robin von Bülow 256044c04f
Use GIT_DIR environment variable to to set .git directory 2019-10-02 12:42:14 +02:00
spacewander 7015501161 git-effort: adjust column limit according to the paths
Fix #780.
2019-09-24 14:32:54 +08:00
Paul Wise 5b62b4a884
Add git-paste for sending patches to pastebin 2019-09-10 10:39:20 +08:00
Paul Wise 1d7d4c2446
Switch from using /tmp to using mktemp
mktemp protects against attacks from other users.
mktemp protects against concurrent writers.
mktemp respects the $TMPDIR environment variable.

Suggested-by: check-all-the-things
2019-09-05 12:41:45 +08:00
Paul Wise 1a414f5512
Fix typos
Suggested-by: codespell
Suggested-by: spellintian
2019-09-05 12:41:38 +08:00
罗泽轩 a56e14488e
Merge pull request #772 from jacobherrington/add-git-coauthor
Add git coauthor command
2019-08-28 18:06:24 +08:00
jacobherrington 55cefa9021 Add conditional logic for linebreaks 2019-08-27 10:52:44 -05:00
jacobherrington 3484df9ca4 Ensure arguments exist 2019-08-23 20:30:18 -05:00
jacobherrington 66288296b2 Add git coauthor command
This adds a feature to add additional authors to the previous commit,
this feature is supported by GitHub and GitLab and based on the format
should be self-evident to anyone reading the commit message.
2019-08-23 20:21:43 -05:00
spacewander a2250dd205 Bump version to 5.1.0-dev. 2019-08-18 10:49:54 +08:00
spacewander ebdebadd3b Version 5.0.0 2019-08-16 22:33:27 +08:00
spacewander d4de567ca7 git-line-summary: should be the history
Also remove some trailing lines after the output.
2019-07-23 22:13:29 +08:00
Brice Dutheil 2dc5d5104e git-guilt: protect against encoding issues with LC_ALL=C 2019-07-18 15:37:47 +02:00
spacewander df06f3e3bd git-rename-branch: change branch argument order
Now git-rename-branch has the same order like 'git branch -m', 'git
rename-tag' and other rename command.

Note that this is a break change.

Close #759.
2019-07-06 11:41:47 +08:00
罗泽轩 ac9e35735b
Merge pull request #762 from spacewander/pr_merge
git-pr: add -m|--merge option to check out a merge commit
2019-06-22 10:54:34 +08:00
Brian Murrell 7d3ab83ec3 implements remote pref for create-branch 2019-06-21 06:20:16 -07:00
spacewander eae05bbb98 git-pr: add -m|--merge option to check out a merge commit
Close #757.
2019-06-17 11:15:12 +08:00
brian murrell 820b7cd41b impl for checking remote pref 2019-06-14 01:35:52 -07:00
spacewander c3c0bdfbbb git-fork: prompt for password before 2FA code.
Fix #750.
2019-06-02 12:20:09 +08:00
timfeirg ecdd665f1c
git-mv-remote: rename a remote regardless of any existing remotes 2019-05-08 14:08:20 +08:00
罗泽轩 044b06b6cb
Merge pull request #723 from bittner/feature/git-undo-soft-leave-changes-staged
Make `git undo -s` restore the staging area
2019-03-04 19:31:16 +08:00
spacewander eecfb9af47 git-guilt: avoid exceeding 80 columns. 2019-02-18 13:11:26 +08:00
spacewander 39df4dfa64 Bump version to 4.8.0-dev. 2019-02-09 17:36:46 +08:00
spacewander f355fb4c94 Version 4.7.0 2019-02-09 17:08:42 +08:00
spacewander f29dad042c git-pr: accpeted multiple GitHub URL or ID with remote. 2019-02-02 12:29:41 +08:00
spacewander 87b7c959b4 git-pr: added <[remote]:pr number> option. 2019-02-02 11:45:27 +08:00
单元源 9f806bb828 feat: Add -s(--soft) for git sync
feat: Add readme for man page and helper

fix: Remove git-sync.1.html
2019-01-16 11:38:35 +08:00
Stu Feldt 3730339067 Adding support for symlink directories in bulk command 2018-12-10 11:07:49 -06:00
Sebastián Mancilla 13fa83b24e git-standup: ensure color usage
Git may fail to detect that the tty supports colors and fallbacks to
non-colored output.

This overrides that by specifying the color parameter.

Based on kamranahmedse/git-standup#84
2018-11-20 14:44:40 -03:00
Orestis 7393fb41ed
git-rename-branch: Don't fail if remote doesn't exist
Allows the command to work correctly with local branches.

Closes #535
2018-09-13 15:15:03 +03:00
Peter Bittner b7d507567b Make git undo -s restore the staging area 2018-08-17 16:22:54 +02:00
spacewander 2590998ee0 Bump version to 4.7.0-dev. 2018-08-11 11:33:30 +08:00
spacewander 8545d97b8d Version 4.6.0 2018-08-11 09:57:41 +08:00
spacewander a347e49178 git-changelog: should remove ^0 suffix from the commit description. 2018-08-08 13:34:11 +08:00
spacewander 792b697450 git-changelog: add --start-commit option, like --start-tag but for commit 2018-06-16 12:20:08 +08:00
spacewander b7a1a0d8b2 git-changelog: add missing newline to the plain output
Previously, running "git changelog -x --start-tag 4.5.0 -p -l" will see

* Bump version to 4.6.0-dev.  * Version 4.5.0

Because there is no newline in the end of each plain output.
2018-06-15 18:14:18 +08:00
Richard Russon f30005acfd optimisation of mkdir 2018-05-25 11:16:14 +01:00
Richard Russon 691d640b2d Ensure info dir exists 2018-05-25 10:12:27 +01:00
Richard Russon 0f76863d9b add: git-ignore -p (private to repo) 2018-05-23 23:59:21 +01:00
罗泽轩 d34b6ae0bc
Merge pull request #714 from spacewander/fix_detect_sed_i_support
git-sed: fix previous bsd sed workaround
2018-05-16 14:38:10 +08:00
Tjaart van der Walt 658f133691 Major/Minor release should reset minor/patch versions to 0
There is a bug in the current version:

```
version=1.1.3
./git-release --semver minor
version=1.2.3
```

The correct behavior should be:

```
version=1.1.3
./git-release --semver minor
version=1.2.0
```
2018-05-07 15:00:39 -07:00
Tjaart van der Walt 6f416b20c3 Fix greedy match of version number
The original regex will greedily match the first digit of version
numbers that have multiple digits.
2018-05-07 14:44:35 -07:00
spacewander f7514bebbf git-sed: fix previous bsd sed workaround 2018-05-07 15:18:28 +08:00
spacewander 0ab9b47371 git-sed: detect sed -i support and work around for the BSD sed 2018-05-05 10:57:57 +08:00
Paul Wise 9785199036
git-sed: discover a separator when the / character is used in arguments
Prevents sed from returning an error for arguments containing filenames:

$ git sed src/foo.c src/bar.c
sed: -e expression #1, char 13: unknown option to `s'
2018-04-26 11:07:07 +08:00
Paul Wise c27a3505dc
git-sed: pass the -r option to the xargs command
Prevents running sed when the search pattern does not match any files.

This results in sed printing an unnessecary warning:

$ git sed foo bar
sed: no input files
2018-04-26 11:06:34 +08:00
Paul Wise ee14220f66
git-sed: Allow the flags to be passed as a third argument
This is more in-line with how sed itself works.
2018-04-20 11:29:54 +08:00
Montak Oleg fd2151f9bb Fix deleting branches without upstream 2018-03-25 00:10:59 +03:00
spacewander ebf7903d0e Bump version to 4.6.0-dev. 2018-02-18 18:58:16 +08:00
spacewander 4ab42e218e Version 4.5.0 2018-02-18 11:56:35 +08:00
spacewander e9ddc1dc3b git-release: show message if nothing given after --semver 2018-02-18 11:37:23 +08:00
罗泽轩 9ee318e8d4
Merge pull request #639 from spacewander/avoid_deleting_local_upstream
git-delete-branch: avoid deleting local upstream
2018-02-15 12:23:29 +08:00
spacewander de364cfac1 git-release: add --no-empty-commit for empty commit hater 2018-02-11 20:12:10 +08:00
spacewander 8714ac4aa1 git-release: create an empty release commit if there is nothing to commit 2018-02-11 20:12:10 +08:00
罗泽轩 d4bf79df8f
git-summary: unescape tab for linux column utility
git-summary: unescape tab for linux column utility

Linux column utility will escape tab if a separator is specified.
This problem is first reported in Fedora 27.
2018-02-08 22:34:43 +08:00
spacewander 16591d3788 git-undo: add confirmation when -h is specified 2018-02-07 10:37:55 +08:00
Dominic Barnes 5639160b8b feat(git-release): push tags first to help ci tools not miss them
If you are buliding on CircleCI for example, pushing the commits first
can lead to a race where CI env will not see the tags since the pull
happened before the tags were finished pushing.

It should be fully safe (and backwards-compatible) to change the order
of pushing to the remote.
2018-01-23 13:51:44 -08:00
spacewander ab99fb3eb2 git-release: handle extra non-numeric prefix in tag with --semver 2017-12-12 10:10:37 +08:00
spacewander 693c84f8f0 git-release: add --semver option 2017-12-10 14:06:00 +08:00
spacewander 199364e932 git-release: function usage doesn't exist, ignore unknown argument instead 2017-12-07 00:29:07 +08:00
Daniel Lublin af39b2b2ee git-effort: restore normal (visible) cursor properly
If I understand GNU* correctly, cnorm should be used to undo `civis` (make
invisible). `cvvis` is just another abnormal mode, namely "very visible".

*) https://www.gnu.org/software/termutils/manual/termutils-2.0/html_chapter/tput_1.html
2017-10-27 10:30:17 +02:00
spacewander a88958ba20 Add GitHub two-factor auth support to git-pull-request 2017-10-18 10:47:17 +08:00
Sam Bostock 6b5f5d8762 Use local variables & format strings 2017-10-14 13:31:31 -04:00
Sam Bostock 18d8221dd2 Fix omission when alphabetically printing ignores
Iterating through `a..z` omits entries starting with other characters.
2017-10-09 23:18:18 -04:00
Sam Bostock cfcb4d92c6 Remove arbitrary column limit on ignore-io 2017-10-09 23:08:12 -04:00
spacewander 4defd6d676 Bump version to 4.5.0-dev. 2017-07-16 12:37:58 +08:00
spacewander be8a1548d4 Version 4.4.0 2017-07-15 16:25:54 +08:00
spacewander 227ef26e7f git summary: use more common way to cd to top level directory 2017-07-15 09:57:57 +08:00
Mark Pitman c064956f85 Use "$@" instead of $@ 2017-07-11 23:37:16 -07:00
Mark Pitman a75411b029 Consolidate feature/bug/chore/refactor logic
Remove unneccesary code
2017-07-11 21:42:02 -07:00
Mark Pitman 93150aa411 Allow -r parameter to be in any order in command line 2017-07-11 21:41:06 -07:00
Mark Pitman 61b2a2c703 Add ability to specify a remote
Use -r to push the new branch to origin
Use -r <remote_name> to push to <remote_name>

Will not auto push to origin if you do not use the argument
2017-07-09 01:57:46 -07:00
Mark Pitman be15db9cdf Fix Issue #186
Use `git create-branch` instead of `git checkout -b` in:
git-bug
git-chore
git-feature
git-refactor

Since `git-finish` uses `git-delete-branch` (which expects the branch to
have been pushed to origin) we should use `git-create-branch` to create
it.
2017-07-07 23:19:02 -07:00
spacewander 4d885acda0 fix various typos 2017-06-18 20:22:11 +08:00
Étienne BERSAC d4c7581835
Add git-mr to checkout GitLab merge requests 2017-06-16 11:11:50 +02:00
Andreas Duering 9baae93a9b Fix typo in git-extras
Output said "Setting up 'git-exras" instead of "Setting up 'git-extras"
2017-05-16 15:12:45 +02:00
hemanth.hm 9334c9db31 Merge pull request #654 from spacewander/replace-xargs-r
git-delete-merged-branches: replace xargs -r option
2017-05-09 14:49:55 +05:30
spacewander 0e7cba55a8 git-delete-merged-branches: replace xargs -r option 2017-05-09 10:48:45 +08:00
spacewander 276a307780 Bump version to 4.4.0-dev. 2017-05-06 14:45:15 +08:00
spacewander 88ee400c3f Version 4.3.0 2017-05-05 16:50:41 +08:00
spacewander f55690e702 git-authors: remove trailing spaces 2017-05-05 16:02:09 +08:00
罗泽轩 204406bd29 Merge pull request #649 from adriaanzon/patch-1
git-fork: Let curl exit with error code on fail
2017-05-05 16:00:39 +08:00
spacewander 27310926d3 git-release: add pre-release failure message 2017-05-03 09:54:17 +08:00
spacewander 3428b278d3 git release: stop if pre-release hook fails 2017-05-02 14:59:18 +08:00
Daniel Bruder b41a4cf05b pass release arguments to pre/post-release scripts
With some modification to catch up with latest situation.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2017-05-02 14:35:03 +08:00
Adriaan Zonnenberg bd8545f748 git-fork: Let curl exit with error code on fail 2017-04-27 18:44:20 +02:00
Sean Molenaar 14159245a9 Add BSD cat support
on macOS cat doesn't support the long operator
2017-04-21 15:37:48 +02:00
spacewander 684d6acc93 git-standup: add sanity check to -d option and overwrite -w option 2017-04-12 23:39:58 +08:00
spacewander 0b91cd9bae git-standup: upgrade interface to catch up with kamranahmedse/git-standup 2017-04-12 14:17:25 +08:00
罗泽轩 61211634c9 Merge pull request #642 from nschlimm/git-bulk-command
Git bulk command
2017-04-01 10:40:08 +08:00
Niklas Schlimm fe39ac8af2 Corrected repository location print out and docs ws-root-directory absolute path 2017-03-30 19:31:32 +02:00
Niklas Schlimm ca62bdcfe6 Codereview Spacewander - whitespaces in workspace locations 2017-03-29 17:34:39 +02:00
Niklas Schlimm 7263b6c611 Review from spacewander 2017-03-28 21:52:21 +02:00
J.C. Yamokoski 6eb04bcca8 Remove slashes from git-config command
These slashes were causing the branch to be saved in `.git/config` with headings
such as `[branch "\"pr/123\""]` as opposed to `[branch "pr/123"]`. This in turn
prevented these entries from being removed when running `git pr clean`.
2017-03-28 09:44:40 -04:00
Niklas Schlimm de15bf7fb0 Merge branch 'master' into git-bulk-command 2017-03-19 19:49:08 +01:00
罗泽轩 49771ba018 Merge pull request #636 from spacewander/fix_rename_branch
use remote detected instead of 'origin' in rename-branch
2017-03-19 20:52:48 +08:00
spacewander 4a05ad29e4 git-rename-branch: use detected upstream remote 2017-03-19 02:00:11 +08:00
spacewander 344b145062 git-pull-request: use detected upstream remote 2017-03-19 01:31:44 +08:00
spacewander 9744830d4a git-delete-branch: avoid deleting local upstream 2017-03-18 22:13:57 +08:00
Niklas Schlimm 02dc8b5b21 Better behaviour in non workspace directories 2017-03-17 17:33:53 +01:00
Niklas Schlimm d3cccebbd2 Current workspace is default target of bulk operations 2017-03-17 17:13:15 +01:00
Niklas Schlimm 9260fd92bf Even shorter 2017-03-13 21:06:50 +01:00
Niklas Schlimm 5957544dee Code refactor 2017-03-12 16:15:09 +01:00
Niklas Schlimm 9263aec739 bug fix in single ws mode 2017-03-08 20:26:44 +01:00
Niklas Schlimm 1cc77481bd code formatting 2017-03-08 20:11:26 +01:00
Niklas Schlimm 534c72b91f Fix in git-bulk head 2017-03-08 19:58:34 +01:00
Niklas Schlimm 57c0eb776c New Command git-bulk initial commit 2017-03-08 19:50:36 +01:00
spacewander cc0dff2f49 fix syntax & name variables better in rename-branch 2017-03-07 14:39:50 +08:00
Niklas Schlimm 422c9a8e69 taken out duplicate columns setting 2017-03-05 16:06:47 +01:00
Niklas Schlimm b01359efc5 Optimized file length calculation 2017-03-04 14:21:26 +01:00
Niklas Schlimm 518db6e648 Columns in git-effort adopt to file length 2017-03-04 13:59:48 +01:00
Dan Kilman b2c7de9a5a Fix git-effort for paths starting with dash 2017-02-14 23:57:19 +02:00
Justin Dugger c80b4e773f fall back to EMAIL when user.email is not configured 2017-02-01 20:36:34 -08:00
Nicolai Skogheim e93f206bad Merge pull request #619 from spacewander/git-summary-separator
use U+266A instead of comma as separator
2017-01-31 11:32:56 +01:00
Andrew Griffiths 2451c0c202 Adds SSH prompt to git fork 2017-01-25 10:32:49 +00:00
spacewander bb5f4b0234 use U+266A instead of comma as separator 2017-01-24 14:13:38 +08:00
spacewander b8ea5c4a02 fix git-extras update and tweak Windows detection
Replace expr with bash substring expansion.
Tested under:
GNU bash, version 4.3.42(5)-release (x86_64-pc-msys)
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
2016-12-07 10:39:53 +08:00
罗泽轩 82162ea8c8 Merge pull request #585 from tardypad/stamp
Add git stamp
2016-12-05 20:13:50 +08:00
罗泽轩 15ae263312 Merge pull request #578 from tardypad/count_fix_extra_arguments
count: remove usage of extra arguments for detailed display
2016-12-05 09:49:03 +08:00
Damien Tardy-Panis a118f306b1 stamp: remove non used multiple lines error messages 2016-12-04 16:21:09 +01:00
Damien Tardy-Panis 4aec48c85c stamp: the message consists in all terms after the identifier
no need to put quotes in case of spaces
2016-12-04 16:21:09 +01:00
Damien Tardy-Panis c9463bf6ef stamp: identifier is case insensitive for the replacement 2016-12-04 16:21:09 +01:00
Damien Tardy-Panis b105dd837a stamp: add replace option
replace all previous stamps with same identifier in commit message
2016-12-04 16:18:54 +01:00
Damien Tardy-Panis 3ffbe23fbe stamp: display new full message as result 2016-12-04 16:18:54 +01:00
Damien Tardy-Panis 79629e6b6e stamp: add extra optional message parameter 2016-12-04 16:18:54 +01:00
Damien Tardy-Panis cd328bfb61 stamp: add basic script 2016-12-04 16:18:54 +01:00
罗泽轩 76694bccdd Merge pull request #601 from richardfearn/git-sed-spaces-in-filenames
git-sed: use "grep -z" and "xargs -0" to cope with spaces in filenames
2016-11-20 10:38:46 +08:00
hemanth.hm 29a5596d9e Merge pull request #603 from richardfearn/git-clear-consistent-defaults
git-clear-soft: change default yes/no option to "no" (as with git-clear)
2016-11-20 05:16:22 +05:30
Richard Fearn c4a9bb46d9 git-clear-soft: change default yes/no option to "no" (as with git-clear)
6d49449 changed the git-clear default option to "no" (see #583).

Make the git-clear-soft default the same - it's safer.
2016-11-19 17:53:51 +00:00
Richard Fearn 8cbbf9095a git-delete-merged-branches: use "xargs -r" to prevent error when there are no branches to delete
Prevents this error:

    $ git delete-merged-branches
    fatal: branch name required
2016-11-19 17:41:30 +00:00
Richard Fearn 2292e1cebe git-sed: use "git grep -z" and "xargs -0" to cope with spaces in filenames
Otherwise filenames with spaces result in errors:

    $ cat "file with spaces in name"
    old

    $ git sed old new
    sed: can't read file: No such file or directory
    sed: can't read with: No such file or directory
    sed: can't read spaces: No such file or directory
    sed: can't read in: No such file or directory
    sed: can't read name: No such file or directory
2016-11-19 17:26:17 +00:00
罗泽轩 fd2de52949 Merge pull request #600 from richardfearn/git-fresh-branch-fix
git-fresh-branch: fix handling of 'yes' response when there are changes
2016-11-20 01:25:30 +08:00
Richard Fearn 4f8e411f71 git-fresh-branch: fix handling of 'yes' response when there are changes
'break' isn't valid in its current location in the script, resulting in an
error like:

  /usr/bin/git-fresh-branch: line 42: break: only meaningful in a `for', `while', or `until' loop

Since there's a call to 'clean' right at the end of the script, do nothing if
anything beginning 'Y' or 'y' is entered; execution will continue to the end
of the script, and 'clean' will be called.
2016-11-19 16:59:58 +00:00
Richard Fearn 82d6a7265f git-{clear,clear-soft,sync}: improve yes/no prompts
Don't print trailing newline; prompt for yes/no response on the same line
2016-11-19 16:41:19 +00:00
Richard Fearn 009f4fb6d1 git-sed: fix 'unkonwn' typo 2016-11-19 14:03:21 +00:00