summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e7509ee)
raw | patch | inline | side by side (parent: e7509ee)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Thu, 8 Nov 2007 00:41:22 +0000 (00:41 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 8 Nov 2007 01:12:53 +0000 (17:12 -0800) |
"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>
"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>
Documentation/RelNotes-1.5.4.txt | patch | blob | history | |
Documentation/git-lost-found.txt | patch | blob | history | |
git-lost-found.sh | patch | blob | history |
index 133fa64d226d3e1265144c3504c06d6e3f9e8c33..65dd1b0a2d5e13665a774f4a981ed8c30e6ff37c 100644 (file)
* Various Perforce importer updates.
+ * git-lost-found was deprecated in favor of git-fsck's --lost-found
+ option.
+
Fixes since v1.5.3
------------------
index bc739117beaf0a3ca56c4158e40f8879d74018e3..7f808fcd767993a60fb96a2876475e696a0f5900 100644 (file)
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
creates refs to them in the .git/lost-found/ directory. Commits and
tags that dereference to commits are stored in .git/lost-found/commit,
diff --git a/git-lost-found.sh b/git-lost-found.sh
index c0b00e0fd143ab9d96933f2d39baa94e7e50e0ef..f2ec5d147a56136b8c3aff8b693912a7c792da63 100755 (executable)
--- a/git-lost-found.sh
+++ b/git-lost-found.sh
SUBDIRECTORY_OK='Yes'
. git-sh-setup
+echo "WARNING: '$0' is deprecated in favor of 'git fsck --lost-found'" >&2
+
if [ "$#" != "0" ]
then
usage