git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2] Deprecate git-lost-found

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 8, 2007, 00:41 UTC
Message-ID
<Pine.LNX.4.64.0711080041120.4362@racer.site>
In-Reply-To
<7vlk998u6r.fsf@gitster.siamese.dyndns.org>

"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>
---
 Documentation/RelNotes-1.5.4.txt |    3 +++
 Documentation/git-lost-found.txt |    4 ++++
 git-lost-found.sh                |    2 ++
 3 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/Documentation/RelNotes-1.5.4.txt b/Documentation/RelNotes-1.5.4.txt
index 133fa64..65dd1b0 100644
--- a/Documentation/RelNotes-1.5.4.txt
+++ b/Documentation/RelNotes-1.5.4.txt
@@ -46,6 +46,9 @@ Updates since v1.5.3
 
  * Various Perforce importer updates.
 
+ * git-lost-found was deprecated in favor of git-fsck's --lost-found
+   option.
+
 Fixes since v1.5.3
 ------------------
 
diff --git a/Documentation/git-lost-found.txt b/Documentation/git-lost-found.txt
index bc73911..7f808fc 100644
--- a/Documentation/git-lost-found.txt
+++ b/Documentation/git-lost-found.txt
@@ -11,6 +11,10 @@ SYNOPSIS
 
 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 a5a32e7..9cedaf8 100755
--- a/git-lost-found.sh
+++ b/git-lost-found.sh
@@ -5,6 +5,8 @@ SUBDIRECTORY_OK='Yes'
 OPTIONS_SPEC=
 . git-sh-setup
 
+echo "WARNING: '$0' is deprecated in favor of 'git fsck --lost-found'" >&2
+
 if [ "$#" != "0" ]
 then
     usage
-- 
1.5.3.5.1597.g7191
Previous: Johannes SchindelinNext: Jonas Fonseca
Message 4 of 22 in “Deprecate git-lost-found”
  1. Deprecate git-lost-foundJohannes Schindelin, Nov 7, 2007
  2. Junio C HamanoNov 8, 2007
  3. Johannes SchindelinNov 8, 2007
  4. Deprecate git-lost-foundJohannes Schindelin, Nov 8, 2007
  5. Remove deprecated commands from command list and update manpagesJonas Fonseca, Nov 8, 2007
  6. Andreas EricssonNov 8, 2007
  7. Drop deprecated commands from git(7) and update deprecation noticesJonas Fonseca, Nov 8, 2007
  8. Junio C HamanoNov 8, 2007
  9. Remove non-existing commands from git(7) and delete their manpagesJonas Fonseca, Nov 9, 2007
  10. 1/3 Documentation: lost-found is now deprecated.Junio C Hamano, Nov 9, 2007
  11. Jonas FonsecaNov 9, 2007
  12. Junio C HamanoNov 9, 2007
  13. 3/3 Documentation: remove documentation for removed tools.Junio C Hamano, Nov 9, 2007
  14. Documentation: Fix references to deprecated commandsJonas Fonseca, Nov 12, 2007
  15. Jonas FonsecaNov 12, 2007
  16. Junio C HamanoNov 12, 2007
  17. Jonas FonsecaNov 12, 2007
  18. J. Bruce FieldsNov 19, 2007
  19. Jonas FonsecaNov 19, 2007
  20. 2/3 Make check-docs target detect removed commandsJunio C Hamano, Nov 9, 2007
  21. Johannes SchindelinNov 8, 2007
  22. Johannes SchindelinNov 8, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.