From: Robin Rosenberg Date: Wed, 13 Dec 2006 23:20:57 GMT Subject: [PATCH] Document the simple way of using of git-cat-file Message-ID: <20061213232056.11218.67473.stgit@lathund.dewire.com> In-Reply-To: <20061213221841.GB4928@fieldses.org> From: Robin Rosenberg Since you can give a version and a path name to git-cat-file, mention it in the man page. Signed-off-by: Robin Rosenberg --- Documentation/git-cat-file.txt | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/git-cat-file.txt b/Documentation/git-cat-file.txt index 5e9cbf8..7abbf27 100644 --- a/Documentation/git-cat-file.txt +++ b/Documentation/git-cat-file.txt @@ -8,13 +8,14 @@ git-cat-file - Provide content or type i SYNOPSIS -------- -'git-cat-file' [-t | -s | -e | -p | ] +'git-cat-file' [-t | -s | -e | -p | ] [ | : ] DESCRIPTION ----------- Provides content or type of objects in the repository. The type is required unless '-t' or '-p' is used to find the object type, -or '-s' is used to find the object size. +or '-s' is used to find the object size. The more user friendly variant +takes a revision and a path name corresponding to the blob you want to see. OPTIONS ------- @@ -57,6 +58,9 @@ If '-p' is specified, the contents of will be returned. +If you don't know the object id, you can supply a version identifies, +such as a branch name, a commit id or tag followed by a colon and a +path name. Author