提交 c0783837 编写于 作者: S SZEDER Gábor 提交者: Junio C Hamano

bash: offer refs instead of filenames for 'git revert'

The completion script for 'git revert' currently offers options and
filenames.  However, 'git revert' doesn't take any filenames from the
command line, but a single commit.  Therefore, it's more sane to offer
refs instead.
Signed-off-by: NSZEDER Gábor <szeder@ira.uka.de>
Acked-by: NShawn O. Pearce <spearce@spearce.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 8d8163f3
......@@ -1344,7 +1344,7 @@ _git_revert ()
return
;;
esac
COMPREPLY=()
__gitcomp "$(__git_refs)"
}
_git_rm ()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册