mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
Deprecate git-lost-found
"git fsck" learnt the option "--lost-found" in v1.5.3-rc0~5, to make "git lost-found" obsolete. It is time to deprecate "git lost-found". Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e7509ee388
commit
fc8b5f0307
|
@ -46,6 +46,9 @@ Updates since v1.5.3
|
||||||
|
|
||||||
* Various Perforce importer updates.
|
* Various Perforce importer updates.
|
||||||
|
|
||||||
|
* git-lost-found was deprecated in favor of git-fsck's --lost-found
|
||||||
|
option.
|
||||||
|
|
||||||
Fixes since v1.5.3
|
Fixes since v1.5.3
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,10 @@ SYNOPSIS
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
*NOTE*: this command is deprecated. Use gitlink:git-fsck[1] with
|
||||||
|
the option '--lost-found' instead.
|
||||||
|
|
||||||
Finds dangling commits and tags from the object database, and
|
Finds dangling commits and tags from the object database, and
|
||||||
creates refs to them in the .git/lost-found/ directory. Commits and
|
creates refs to them in the .git/lost-found/ directory. Commits and
|
||||||
tags that dereference to commits are stored in .git/lost-found/commit,
|
tags that dereference to commits are stored in .git/lost-found/commit,
|
||||||
|
|
|
@ -4,6 +4,8 @@ USAGE=''
|
||||||
SUBDIRECTORY_OK='Yes'
|
SUBDIRECTORY_OK='Yes'
|
||||||
. git-sh-setup
|
. git-sh-setup
|
||||||
|
|
||||||
|
echo "WARNING: '$0' is deprecated in favor of 'git fsck --lost-found'" >&2
|
||||||
|
|
||||||
if [ "$#" != "0" ]
|
if [ "$#" != "0" ]
|
||||||
then
|
then
|
||||||
usage
|
usage
|
||||||
|
|
Loading…
Reference in a new issue