-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
460 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Based on scripts from git-utils: | ||
# * https://github.com/ddollar/git-utils/blob/master/git-unwip | ||
|
||
# Check if the last commit is a 'WIP' commit | ||
LAST_COMMIT=`git log -1 --pretty=%B | tr --delete '[:space:]'` | ||
|
||
if [ 'WIP' != $LAST_COMMIT ]; then | ||
echo 'Last commit is not a WIP commit, so it will not be unWIP-ed.' | ||
exit | ||
fi | ||
|
||
git undo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Based on scripts from git-utils: | ||
# * https://github.com/ddollar/git-utils/blob/master/git-wip | ||
# * https://github.com/ddollar/git-utils/blob/master/git-addremove | ||
|
||
git add --all | ||
git commit --all --message="WIP" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.\" generated with Ronn/v0.7.3 | ||
.\" http://github.com/rtomayko/ronn/tree/0.7.3 | ||
. | ||
.TH "GIT\-UNWIP" "1" "July 2017" "" "" | ||
. | ||
.SH "NAME" | ||
\fBgit\-unwip\fR \- Undo a Work In Progress commit | ||
. | ||
.SH "SYNOPSIS" | ||
\fBgit\-unwip\fR | ||
. | ||
.SH "DESCRIPTION" | ||
Undo a Work In Progress commit\. | ||
. | ||
.SH "OPTIONS" | ||
None | ||
. | ||
.SH "EXAMPLES" | ||
Create a WIP commit which stores all changes in the working directory\. | ||
. | ||
.IP "" 4 | ||
. | ||
.nf | ||
|
||
$ git wip | ||
. | ||
.fi | ||
. | ||
.IP "" 0 | ||
. | ||
.P | ||
Later on, undo the commit and continue making changes\. | ||
. | ||
.IP "" 4 | ||
. | ||
.nf | ||
|
||
$ git unwip | ||
. | ||
.fi | ||
. | ||
.IP "" 0 | ||
. | ||
.SH "AUTHOR" | ||
Written by Andrew Sullivan Cant <\fImail@andrewsullivancant\.ca\fR> | ||
. | ||
.SH "REPORTING BUGS" | ||
<\fIhttps://github\.com/tj/git\-extras/issues\fR> | ||
. | ||
.SH "SEE ALSO" | ||
<\fIhttps://github\.com/tj/git\-extras\fR> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
git-unwip(1) -- Undo a Work In Progress commit | ||
================================ | ||
|
||
## SYNOPSIS | ||
|
||
`git-unwip` | ||
|
||
## DESCRIPTION | ||
|
||
Undo a Work In Progress commit. | ||
|
||
## OPTIONS | ||
|
||
None | ||
|
||
## EXAMPLES | ||
|
||
Create a WIP commit which stores all changes in the working directory. | ||
|
||
$ git wip | ||
|
||
Later on, undo the commit and continue making changes. | ||
|
||
$ git unwip | ||
|
||
## AUTHOR | ||
|
||
Written by Andrew Sullivan Cant <<[email protected]>> | ||
|
||
## REPORTING BUGS | ||
|
||
<<https://github.com/tj/git-extras/issues>> | ||
|
||
## SEE ALSO | ||
|
||
<<https://github.com/tj/git-extras>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.\" generated with Ronn/v0.7.3 | ||
.\" http://github.com/rtomayko/ronn/tree/0.7.3 | ||
. | ||
.TH "GIT\-WIP" "1" "July 2017" "" "" | ||
. | ||
.SH "NAME" | ||
\fBgit\-wip\fR \- Create a Work In Progress commit | ||
. | ||
.SH "SYNOPSIS" | ||
\fBgit\-wip\fR | ||
. | ||
.SH "DESCRIPTION" | ||
Create a Work In Progress commit, include all files in the working directory\. | ||
. | ||
.SH "OPTIONS" | ||
None | ||
. | ||
.SH "EXAMPLES" | ||
Create a WIP commit which stores all changes in the working directory\. | ||
. | ||
.IP "" 4 | ||
. | ||
.nf | ||
|
||
$ git wip | ||
. | ||
.fi | ||
. | ||
.IP "" 0 | ||
. | ||
.P | ||
Later on, undo the commit and continue making changes\. | ||
. | ||
.IP "" 4 | ||
. | ||
.nf | ||
|
||
$ git unwip | ||
. | ||
.fi | ||
. | ||
.IP "" 0 | ||
. | ||
.SH "AUTHOR" | ||
Written by \fIAndrew Sullivan Cant\fR \fImail@andrewsullivancant\.ca\fR | ||
. | ||
.SH "REPORTING BUGS" | ||
<\fIhttps://github\.com/tj/git\-extras/issues\fR> | ||
. | ||
.SH "SEE ALSO" | ||
<\fIhttps://github\.com/tj/git\-extras\fR> |
Oops, something went wrong.