Skip to content

Conversation

@bruno-
Copy link

@bruno- bruno- commented Jul 20, 2014

This pull request contains refactoring work and improvements for git squash.

These issues are handled:

I did a decent round of testing for this locally and everything was fine.

Please let me know if you have any questions or code has to be tweaked etc.

`git squash` refactor:
- first argument can be a branch or a commit reference
- the `--me` argument is not required anymore
- use `git reset --soft` is squashing on a current branch
- if squashing on master branch, prompt for confirmation
- does not delete provided branch after squashing
- fix bug: if `git merge --squash` command fails, exit script

Update README and man pages.

Fixes #95
Closes #198
@hemanth
Copy link
Collaborator

hemanth commented Jul 21, 2014

Kudos! @bruno.

hemanth added a commit that referenced this pull request Jul 21, 2014
Refactor and improve `git squash`.
@hemanth hemanth merged commit 1f8971b into tj:master Jul 21, 2014
@bruno- bruno- deleted the refactor_git_squash branch July 21, 2014 12:21
tardypad pushed a commit to tardypad/git-extras that referenced this pull request Jul 13, 2016
Refactor and improve `git squash`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants