summaryrefslogtreecommitdiff
path: root/t/t0200-gettext-basic.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2016-09-09 12:10:50 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-09-11 14:48:15 -0700
commit7bcf341453572a227036afec76bdab451b798870 (patch)
tree44bf23805839bd2af79a0f33ede751b15821c217 /t/t0200-gettext-basic.sh
parentcat-file: introduce the --filters option (diff)
downloadtgif-7bcf341453572a227036afec76bdab451b798870.tar.xz
cat-file --textconv/--filters: allow specifying the path separately
There are circumstances when it is relatively easy to figure out the object name for a given path, but not the name of the containing tree. For example, when looking at a diff generated by Git, the object names are recorded, but not the revision. As a matter of fact, the revisions from which the diff was generated may not even exist locally. In such a case, the user would have to generate a fake revision just to be able to use --textconv or --filters. Let's simplify this dramatically, because we do not really need that revision at all: all we care about is that we know the path. In the scenario described above, we do know the path, and we just want to specify it separately from the object name. Example usage: git cat-file --textconv --path=main.c 0f1937fd Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0200-gettext-basic.sh')
0 files changed, 0 insertions, 0 deletions