Code

git-cherry: make <upstream> parameter optional
authorMarkus Heidelberg <markus.heidelberg@web.de>
Mon, 29 Dec 2008 17:45:20 +0000 (18:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Jan 2009 12:40:16 +0000 (04:40 -0800)
commitf29680221124d05581dd2db52a4e7f0fa15fa929
tree823b5395a4e0dc001aa81d60d548a71777acf1a7
parent8104ebfe8276657ee803cca7eb8665a78cf3ef83
git-cherry: make <upstream> parameter optional

The upstream branch <upstream> now defaults to the first tracked
remote branch, which is set by the configuration variables
branch.<name>.remote and branch.<name>.merge of the current branch.

Without such a remote branch, the command "git cherry [-v]" fails with
usage output as before and an additional message.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-cherry.txt
builtin-log.c