change: deprecate git-back

Thanks @vr8hub for the report.

git-back will be removed in the next next release.
This commit is contained in:
spacewander 2020-02-23 11:41:54 +08:00
parent b708a8a4d3
commit 3917c774ec
4 changed files with 12 additions and 3 deletions

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash
echo >&2 "Deprecated. Use 'git undo --soft [commitcount]' instead."
if test $# -eq 0; then
git reset --soft HEAD~1
else

View file

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "GIT\-BACK" "1" "October 2017" "" "Git Extras"
.TH "GIT\-BACK" "1" "February 2020" "" "Git Extras"
.
.SH "NAME"
\fBgit\-back\fR \- Undo and Stage latest commits
@ -10,6 +10,9 @@
\fBgit\-back\fR [<commitcount>]
.
.SH "DESCRIPTION"
Deprecated\. Use \'git undo \-\-soft [commitcount]\' instead\.
.
.P
Removes the latest commits, and add their changes to your staging area\.
.
.SH "OPTIONS"

View file

@ -80,6 +80,8 @@
<h2 id="DESCRIPTION">DESCRIPTION</h2>
<p> Deprecated. Use 'git undo --soft [commitcount]' instead.</p>
<p> Removes the latest commits, and add their changes to your staging area.</p>
<h2 id="OPTIONS">OPTIONS</h2>
@ -102,7 +104,7 @@
<h2 id="AUTHOR">AUTHOR</h2>
<p>Written by Kenneth Reitz &lt;<a href="&#x6d;&#97;&#x69;&#108;&#116;&#111;&#x3a;&#109;&#x65;&#x40;&#107;&#101;&#x6e;&#x6e;&#x65;&#x74;&#x68;&#114;&#101;&#x69;&#x74;&#122;&#x2e;&#x63;&#111;&#109;" data-bare-link="true">&#x6d;&#x65;&#x40;&#107;&#x65;&#x6e;&#110;&#101;&#x74;&#104;&#114;&#101;&#105;&#x74;&#x7a;&#46;&#x63;&#x6f;&#109;</a>&gt;</p>
<p>Written by Kenneth Reitz &lt;<a href="&#109;&#x61;&#x69;&#108;&#116;&#x6f;&#58;&#109;&#x65;&#x40;&#107;&#101;&#x6e;&#x6e;&#x65;&#116;&#104;&#x72;&#101;&#x69;&#116;&#x7a;&#x2e;&#99;&#x6f;&#x6d;" data-bare-link="true">&#x6d;&#101;&#x40;&#107;&#101;&#x6e;&#x6e;&#x65;&#x74;&#x68;&#x72;&#101;&#x69;&#116;&#x7a;&#x2e;&#99;&#x6f;&#109;</a>&gt;</p>
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
@ -115,7 +117,7 @@
<ol class='man-decor man-foot man foot'>
<li class='tl'></li>
<li class='tc'>October 2017</li>
<li class='tc'>February 2020</li>
<li class='tr'>git-back(1)</li>
</ol>

View file

@ -7,6 +7,8 @@ git-back(1) -- Undo and Stage latest commits
## DESCRIPTION
Deprecated. Use 'git undo --soft [commitcount]' instead.
Removes the latest commits, and add their changes to your staging area.
## OPTIONS