</dt>\r
<dd>\r
<p>\r
- Format of the resulting archive: <em>tar</em>, <em>zip</em>…\r
+ Format of the resulting archive: <em>tar</em>, <em>zip</em>… The default\r
+ is <em>tar</em>.\r
</p>\r
</dd>\r
<dt>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 04-Apr-2007 18:33:25 UTC\r
+Last updated 10-Apr-2007 21:31:10 UTC\r
</div>\r
</div>\r
</body>\r
-------
--format=<fmt>::
- Format of the resulting archive: 'tar', 'zip'...
+ Format of the resulting archive: 'tar', 'zip'... The default
+ is 'tar'.
--list::
Show all available formats.
<div class="sectionbody">\r
<div class="verseblock">\r
<div class="content"><em>git-show-ref</em> [-q|--quiet] [--verify] [-h|--head] [-d|--dereference]\r
- [-s|--hash] [--abbrev] [--tags] [--heads] [--] <pattern>…</div></div>\r
+ [-s|--hash] [--abbrev] [--tags] [--heads] [--] <pattern>…\r
+<em>git-show-ref</em> --exclude-existing[=pattern]</div></div>\r
</div>\r
<h2>DESCRIPTION</h2>\r
<div class="sectionbody">\r
commit IDs. Results can be filtered using a pattern and tags can be\r
dereferenced into object IDs. Additionally, it can be used to test whether a\r
particular ref exists.</p>\r
+<p>The --exclude-existing form is a filter that does the inverse, it shows the\r
+refs from stdin that don't exist in the local repository.</p>\r
<p>Use of this utility is encouraged in favor of directly accessing files under\r
in the <tt>.git</tt> directory.</p>\r
</div>\r
</p>\r
</dd>\r
<dt>\r
+--exclude-existing, --exclude-existing=pattern\r
+</dt>\r
+<dd>\r
+<p>\r
+ Make git-show-ref act as a filter that reads refs from stdin of the\r
+ form "<sup>(?:<anything>\s)?<refname>(?:\</sup>{})?$" and performs the\r
+ following actions on each:\r
+ (1) strip "^{}" at the end of line if any;\r
+ (2) ignore if pattern is provided and does not head-match refname;\r
+ (3) warn if refname is not a well-formed refname and skip;\r
+ (4) ignore if refname is a ref that exists in the local repository;\r
+ (5) otherwise output the line.\r
+</p>\r
+</dd>\r
+<dt>\r
<pattern>\r
</dt>\r
<dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 04-Apr-2007 18:34:22 UTC\r
+Last updated 10-Apr-2007 21:31:10 UTC\r
</div>\r
</div>\r
</body>\r
[verse]
'git-show-ref' [-q|--quiet] [--verify] [-h|--head] [-d|--dereference]
[-s|--hash] [--abbrev] [--tags] [--heads] [--] <pattern>...
+'git-show-ref' --exclude-existing[=pattern]
DESCRIPTION
-----------
dereferenced into object IDs. Additionally, it can be used to test whether a
particular ref exists.
+The --exclude-existing form is a filter that does the inverse, it shows the
+refs from stdin that don't exist in the local repository.
+
Use of this utility is encouraged in favor of directly accessing files under
in the `.git` directory.
Do not print any results to stdout. When combined with '--verify' this
can be used to silently check if a reference exists.
+--exclude-existing, --exclude-existing=pattern::
+
+ Make git-show-ref act as a filter that reads refs from stdin of the
+ form "^(?:<anything>\s)?<refname>(?:\^\{\})?$" and performs the
+ following actions on each:
+ (1) strip "^{}" at the end of line if any;
+ (2) ignore if pattern is provided and does not head-match refname;
+ (3) warn if refname is not a well-formed refname and skip;
+ (4) ignore if refname is a ref that exists in the local repository;
+ (5) otherwise output the line.
+
+
<pattern>::
Show references matching one or more patterns.