ls-files: add --abbrev[=<n>] option

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Eric Wong
2006-03-07 11:59:17 -08:00
committed by Junio C Hamano
parent cb85bfe5df
commit ad0cae4cb9
2 changed files with 24 additions and 4 deletions

View File

@ -14,9 +14,9 @@ SYNOPSIS
(-[c|d|o|i|s|u|k|m])\*
[-x <pattern>|--exclude=<pattern>]
[-X <file>|--exclude-from=<file>]
[--exclude-per-directory=<file>]
[--exclude-per-directory=<file>]
[--error-unmatch]
[--full-name] [--] [<file>]\*
[--full-name] [--abbrev] [--] [<file>]\*
DESCRIPTION
-----------
@ -98,6 +98,11 @@ OPTIONS
option forces paths to be output relative to the project
top directory.
--abbrev[=<n>]::
Instead of showing the full 40-byte hexadecimal object
lines, show only handful hexdigits prefix.
Non default number of digits can be specified with --abbrev=<n>.
--::
Do not interpret any more arguments as options.