Commit graph

16 commits

Author SHA1 Message Date
Edwin Kofler 4611b24320
chore: Fix more Bash inconsistencies (#1021) 2023-01-20 18:17:49 +08:00
Montak Oleg fd2151f9bb Fix deleting branches without upstream 2018-03-25 00:10:59 +03:00
spacewander 9744830d4a git-delete-branch: avoid deleting local upstream 2017-03-18 22:13:57 +08:00
Jon Ander Peñalba bfd38ca891 When deleting a branch check if git has config.
Don't assume that the remote is always origin and that the
remote branch name is the same as the local one
2014-12-17 11:33:09 +01:00
hemanth.hm 7b7913fab1 More portable she-bangs. 2014-11-30 17:47:26 +05:30
Todd Wolfson 9b787421e7 Added multi-delete for git-delete-branch and git-delete-tag
Correcting typos
Compiled latest documentation
Applying changes from delete-tag to delete-branch for consistency
Removed unnecessary string quotes (thanks `git` ref design) and everything works
Tags are not being found with string concatenation
Updated delete-tag to accept multiple tags
Corrections for delete-branch
Updating docs for delete-tag
Added 'Todd Wolfson' to AUTHORS
Updated documentation for delete-branch
Moved deletions to concatenate strings and delete in one fell swoop
Reworking delete-branch to delete multiple branches in series
2013-09-15 14:40:35 -07:00
☃ pitr a06d552933 fix delete-branch to work with same-name tags
when there's a tag and a branch with the same name, git errors out with

`error: dst refspec MY_BRANCH matches more than one.`

git-delete-tag is not affected by this bug
2013-01-24 13:16:08 -05:00
Alexander Krasnukhin 670f531717 Delete branch on origin even if it wasn't locally fetched yet.
fix #144
2012-11-18 03:39:42 +01:00
David Baumgold 3e3b4c918c Send error messages to stderr instead of stdout 2012-01-25 11:52:08 -05:00
Jonhnny Weslley f235670a3e adopting uniq code style across multiple scripts: variables assignments, arguments validation and core logic. This style reduces if statements usage and makes code easier to understand. :D 2010-11-25 16:23:38 -03:00
Tj Holowaychuk c9540edc9e Added -d -> -D. Closes #15 2010-10-25 14:03:41 -07:00
Gert Van Gool ce43c42087 Don't fail if the local branch doesn't exist 2010-09-10 08:19:27 -07:00
Gert Van Gool a3cbb7df9a Also delete the remote branch 2010-09-10 08:19:27 -07:00
Aggelos Orfanakos 183efac185 Delete remote branch only if local was deleted 2010-08-27 10:41:28 -07:00
Aggelos Orfanakos b8c9f0e423 Use -d to avoid deleting an unmerged branch by accident 2010-08-27 10:41:05 -07:00
Tj Holowaychuk 4dc99404ac Added git-delete-branch 2010-08-10 21:13:59 -07:00