提交 d6d96f83 编写于 作者: J Junio C Hamano

Merge branch 'maint-1.5.4' into maint

* maint-1.5.4:
  Docs gitk: Explicitly mention the files that gitk uses (~/.gitk)
  Document -w option to shortlog
  bisect: report bad rev better
...@@ -8,8 +8,8 @@ git-shortlog - Summarize 'git log' output ...@@ -8,8 +8,8 @@ git-shortlog - Summarize 'git log' output
SYNOPSIS SYNOPSIS
-------- --------
[verse] [verse]
git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e] git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e] [-w]
git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [<committish>...] git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [-w[<width>[,<indent1>[,<indent2>]]]] [<committish>...]
DESCRIPTION DESCRIPTION
----------- -----------
...@@ -35,6 +35,12 @@ OPTIONS ...@@ -35,6 +35,12 @@ OPTIONS
-e, \--email:: -e, \--email::
Show the email address of each author. Show the email address of each author.
-w[<width>[,<indent1>[,<indent2>]]]::
Linewrap the output by wrapping each line at `width`. The first
line of each entry is indented by `indent1` spaces, and the second
and subsequent lines are indented by `indent2` spaces. `width`,
`indent1`, and `indent2` default to 76, 6 and 9 respectively.
FILES FILES
----- -----
......
...@@ -74,6 +74,11 @@ gitk --max-count=100 --all \-- Makefile:: ...@@ -74,6 +74,11 @@ gitk --max-count=100 --all \-- Makefile::
Show at most 100 changes made to the file 'Makefile'. Instead of only Show at most 100 changes made to the file 'Makefile'. Instead of only
looking for changes in the current branch look in all branches. looking for changes in the current branch look in all branches.
Files
-----
Gitk creates the .gitk file in your $HOME directory to store preferences
such as display options, font, and colors.
See Also See Also
-------- --------
'qgit(1)':: 'qgit(1)'::
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "shortlog.h" #include "shortlog.h"
static const char shortlog_usage[] = static const char shortlog_usage[] =
"git-shortlog [-n] [-s] [-e] [<commit-id>... ]"; "git-shortlog [-n] [-s] [-e] [-w] [<commit-id>... ]";
static int compare_by_number(const void *a1, const void *a2) static int compare_by_number(const void *a1, const void *a2)
{ {
......
...@@ -155,9 +155,9 @@ bisect_state() { ...@@ -155,9 +155,9 @@ bisect_state() {
shift shift
for rev in "$@" for rev in "$@"
do do
rev=$(git rev-parse --verify "$rev^{commit}") || sha=$(git rev-parse --verify "$rev^{commit}") ||
die "Bad rev input: $rev" die "Bad rev input: $rev"
bisect_write "$state" "$rev" bisect_write "$state" "$sha"
done ;; done ;;
*,bad) *,bad)
die "'git bisect bad' can take only one argument." ;; die "'git bisect bad' can take only one argument." ;;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册