mirror of
https://github.com/git/git
synced 2024-08-27 03:29:21 +00:00
Documentation: minor edits of git-lost-found manpage
Minor improvements to grammar and clarity of lost-found manpage. Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
5f2e1df5c9
commit
cb1881c6ee
|
@ -12,23 +12,22 @@ SYNOPSIS
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
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 .git/lost-found/ directory. Commits and
|
creates refs to them in the .git/lost-found/ directory. Commits and
|
||||||
tags that dereference to commits go to .git/lost-found/commit
|
tags that dereference to commits are stored in .git/lost-found/commit,
|
||||||
and others are stored in .git/lost-found/other directory.
|
and other objects are stored in .git/lost-found/other.
|
||||||
|
|
||||||
|
|
||||||
OUTPUT
|
OUTPUT
|
||||||
------
|
------
|
||||||
One line description from the commit and tag found along with
|
Prints to standard output the object names and one-line descriptions
|
||||||
their object name are printed on the standard output.
|
of any commits or tags found.
|
||||||
|
|
||||||
|
|
||||||
EXAMPLE
|
EXAMPLE
|
||||||
-------
|
-------
|
||||||
|
|
||||||
Suppose you run 'git tag -f' and mistyped the tag to overwrite.
|
Suppose you run 'git tag -f' and mistype the tag to overwrite.
|
||||||
The ref to your tag is overwritten, but until you run 'git
|
The ref to your tag is overwritten, but until you run 'git
|
||||||
prune', it is still there.
|
prune', the tag itself is still there.
|
||||||
|
|
||||||
------------
|
------------
|
||||||
$ git lost-found
|
$ git lost-found
|
||||||
|
@ -36,15 +35,15 @@ $ git lost-found
|
||||||
...
|
...
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Also you can use gitk to browse how they relate to each other
|
Also you can use gitk to browse how any tags found relate to each
|
||||||
and existing (probably old) tags.
|
other.
|
||||||
|
|
||||||
------------
|
------------
|
||||||
$ gitk $(cd .git/lost-found/commit && echo ??*)
|
$ gitk $(cd .git/lost-found/commit && echo ??*)
|
||||||
------------
|
------------
|
||||||
|
|
||||||
After making sure that it is the object you are looking for, you
|
After making sure you know which the object is the tag you are looking
|
||||||
can reconnect it to your regular .git/refs hierarchy.
|
for, you can reconnect it to your regular .git/refs hierarchy.
|
||||||
|
|
||||||
------------
|
------------
|
||||||
$ git cat-file -t 1ef2b196
|
$ git cat-file -t 1ef2b196
|
||||||
|
|
Loading…
Reference in a new issue