aboutsummaryrefslogtreecommitdiff
path: root/quote.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-02 23:35:05 -0700
committerJunio C Hamano <gitster@pobox.com>2012-07-09 16:42:22 -0700
commitdaba53aeaf6565b4bbdd6783c659480453ec3c5e (patch)
treec4d4c9ef0161760d0ffb2f051b683fd3f50d8db7 /quote.h
parentd5f6b1d756a29255efedee3cb6e8526aedcfeb00 (diff)
downloadgit-daba53aeaf6565b4bbdd6783c659480453ec3c5e.tar.gz
git-daba53aeaf6565b4bbdd6783c659480453ec3c5e.tar.xz
sha1_name.c: add support for disambiguating other types
This teaches the revision parser that in "$name:$path" (used for a blob object name), "$name" must be a tree-ish. There are many more places where we know what types of objects are called for. This patch adds support for "commit", "treeish", "tree", and "blob", which could be used in the following contexts: - "git apply --build-fake-ancestor" reads the "index" lines from the patch; they must name blob objects (not even "blob-ish"); - "git commit-tree" reads a tree object name (not "tree-ish"), and zero or more commit object names (not "committish"); - "git reset $rev" wants a committish; "git reset $rev -- $path" wants a treeish. They will come in later patches in the series. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.h')
0 files changed, 0 insertions, 0 deletions