author | Jeff King <peff@peff.net> | |
Mon, 2 Jul 2007 04:21:24 +0000 (00:21 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 2 Jul 2007 04:45:13 +0000 (21:45 -0700) | ||
commit | 401de4057ac83d473f8bead9b11d00b6371bd6a0 | |
tree | 3939b8b46531353e8d5368d9f04cf701ba1545db | tree | snapshot |
parent | 006a86646434e5212defdea59092059fe41387b0 | commit | diff |
git-stash: don't complain when listing in a repo with no stash
Previously, the git-log invocation would complain if a repo
had not had any stashes created in it yet:
$ git-init
$ git-stash
fatal: ambiguous argument 'refs/stash': unknown revision or
path not in the working tree.
Use '--' to separate paths from revisions
Instead, we only call git-log if we actually have a
refs/stash. We could alternatively create the ref when any
stash command is called, but it's better for the 'list'
command to not require write access to the repo.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Previously, the git-log invocation would complain if a repo
had not had any stashes created in it yet:
$ git-init
$ git-stash
fatal: ambiguous argument 'refs/stash': unknown revision or
path not in the working tree.
Use '--' to separate paths from revisions
Instead, we only call git-log if we actually have a
refs/stash. We could alternatively create the ref when any
stash command is called, but it's better for the 'list'
command to not require write access to the repo.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh | diff | blob | history |