From: Ian Jackson Date: Wed, 27 May 2015 20:28:39 +0000 (+0100) Subject: git_get_ref: Move to Dgit.pm and reimplement X-Git-Tag: debian/0.30~137 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=0c838feda384f115a115ddd609eca9b8c6ece162;hp=0c838feda384f115a115ddd609eca9b8c6ece162 git_get_ref: Move to Dgit.pm and reimplement Use git for-each-ref --format=%(objectname) [r]efs/whatever This pattern won't match literally as a prefix because a ref name cannot contain [, so it must match according to fnmatch. whatever cannot contain fnmatch metacharacters because they're not valid in ref names. This is a better idiom because it might directly look up the ref in question (although currently it probably doesn't). ---