lost-found: remove deprecated command

"git lost-found" has been deprecated since commit fc8b5f0 (Deprecate git-lost-found, 2007-11-08), included in version 1.5.4. Signed-off-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>

John Keeping committed Nov 10, 2013 at 15:47 UTC 7c4012812aa87a0cceb13b695e95e66d628516ec
6 files changed -111
.gitignore
-1
@@ -75,7 +75,6 @@
75 /git-init-db
76 /git-instaweb
77 /git-log
78 -/git-lost-found
78 /git-ls-files
79 /git-ls-remote
80 /git-ls-tree
Documentation/git-lost-found.txt deleted
-74
@@ -1,74 +0,0 @@
1 -git-lost-found(1)
2 -=================
3 -
4 -NAME
5 -----
6 -git-lost-found - Recover lost refs that luckily have not yet been pruned
7 -
8 -SYNOPSIS
9 ---------
10 -[verse]
11 -'git lost-found'
12 -
13 -DESCRIPTION
14 ------------
15 -
16 -*NOTE*: this command is deprecated. Use linkgit:git-fsck[1] with
17 -the option '--lost-found' instead.
18 -
19 -Finds dangling commits and tags from the object database, and
20 -creates refs to them in the .git/lost-found/ directory. Commits and
21 -tags that dereference to commits are stored in .git/lost-found/commit,
22 -and other objects are stored in .git/lost-found/other.
23 -
24 -
25 -OUTPUT
26 -------
27 -Prints to standard output the object names and one-line descriptions
28 -of any commits or tags found.
29 -
30 -EXAMPLE
31 --------
32 -
33 -Suppose you run 'git tag -f' and mistype the tag to overwrite.
34 -The ref to your tag is overwritten, but until you run 'git
35 -prune', the tag itself is still there.
36 -
37 -------------
38 -$ git lost-found
39 -[1ef2b196d909eed523d4f3c9bf54b78cdd6843c6] GIT 0.99.9c
40 -...
41 -------------
42 -
43 -Also you can use gitk to browse how any tags found relate to each
44 -other.
45 -
46 -------------
47 -$ gitk $(cd .git/lost-found/commit && echo ??*)
48 -------------
49 -
50 -After making sure you know which the object is the tag you are looking
51 -for, you can reconnect it to your regular `refs` hierarchy by using
52 -the `update-ref` command.
53 -
54 -------------
55 -$ git cat-file -t 1ef2b196
56 -tag
57 -$ git cat-file tag 1ef2b196
58 -object fa41bbce8e38c67a218415de6cfa510c7e50032a
59 -type commit
60 -tag v0.99.9c
61 -tagger Junio C Hamano <junkio@cox.net> 1131059594 -0800
62 -
63 -GIT 0.99.9c
64 -
65 -This contains the following changes from the "master" branch, since
66 -...
67 -$ git update-ref refs/tags/not-lost-anymore 1ef2b196
68 -$ git rev-parse not-lost-anymore
69 -1ef2b196d909eed523d4f3c9bf54b78cdd6843c6
70 -------------
71 -
72 -GIT
73 ----
74 -Part of the linkgit:git[1] suite
Makefile
-1
@@ -452,7 +452,6 @@ SCRIPT_SH += git-am.sh
452 SCRIPT_SH += git-bisect.sh
453 SCRIPT_SH += git-difftool--helper.sh
454 SCRIPT_SH += git-filter-branch.sh
455 -SCRIPT_SH += git-lost-found.sh
455 SCRIPT_SH += git-merge-octopus.sh
456 SCRIPT_SH += git-merge-one-file.sh
457 SCRIPT_SH += git-merge-resolve.sh
command-list.txt
-1
@@ -64,7 +64,6 @@ git-init mainporcelain common
64 git-instaweb ancillaryinterrogators
65 gitk mainporcelain
66 git-log mainporcelain common
67 -git-lost-found ancillarymanipulators deprecated
67 git-ls-files plumbinginterrogators
68 git-ls-remote plumbinginterrogators
69 git-ls-tree plumbinginterrogators
contrib/completion/git-completion.bash
-1
@@ -673,7 +673,6 @@ __git_list_porcelain_commands ()
673 index-pack) : plumbing;;
674 init-db) : deprecated;;
675 local-fetch) : plumbing;;
676 - lost-found) : infrequent;;
676 ls-files) : plumbing;;
677 ls-remote) : plumbing;;
678 ls-tree) : plumbing;;
git-lost-found.sh deleted
-33
@@ -1,33 +0,0 @@
1 -#!/bin/sh
2 -
3 -USAGE=''
4 -SUBDIRECTORY_OK='Yes'
5 -OPTIONS_SPEC=
6 -. git-sh-setup
7 -
8 -echo "WARNING: '$0' is deprecated in favor of 'git fsck --lost-found'" >&2
9 -
10 -if [ "$#" != "0" ]
11 -then
12 - usage
13 -fi
14 -
15 -laf="$GIT_DIR/lost-found"
16 -rm -fr "$laf" && mkdir -p "$laf/commit" "$laf/other" || exit
17 -
18 -git fsck --full --no-reflogs |
19 -while read dangling type sha1
20 -do
21 - case "$dangling" in
22 - dangling)
23 - if git rev-parse -q --verify "$sha1^0" >/dev/null
24 - then
25 - dir="$laf/commit"
26 - git show-branch "$sha1"
27 - else
28 - dir="$laf/other"
29 - fi
30 - echo "$sha1" >"$dir/$sha1"
31 - ;;
32 - esac
33 -done