Sha256: 87ce8bcdece95b9abd9d28180dc357a8bfb823ae4bec451c4f384a3d57d771c5

Contents?: true

Size: 1.72 KB

Versions: 53

Compression:

Stored size: 1.72 KB

Contents

git-footers(1)
==============

NAME
----
git-footers -
include::_git-footers_desc.helper.txt[]

SYNOPSIS
--------
[verse]
'git footers' [--key FOOTER] REF
'git footers' [--position | --position-ref | --position-num] REF

DESCRIPTION
-----------

`git footers` extracts information included in commit messages as "footers",
which are roughly like HTTP headers except they are at the end.  For example, a
commit might look like:

    This is a fancy commit message.

    Cr-Commit-Position: refs/heads/master@{#292272}
    Tech-Debt-Introduced: 17 nanoMSOffices

`git footers` knows how to extract this information.

Footers are order-independent and can appear more than once. Thus they are
treated as a multimap.

OPTIONS
-------

If no options are given, all footers are printed, with their names
case-normalized.

--key FOOTER::
  Extract all the headers associated with the given key, and print one per 
  line. If there are no footers with this key, produces no output and exits
  successfully.

--position::
  Extract the Chrome commit position from the footers.  This first attempts
  to get the value of the `Cr-Commit-Position` footer.  If that doesn't exist
  then it tries a heuristic based on `Git-Svn-Id`.  Output is in one of the
  following forms:

    refs/heads/master@{#292272}
    refs/branch-heads/branchname

--position-num::
  Extracts and prints the Chrome commit position number only (292272 in the
  example above).  Exits with an error if one cannot be found.

--position-ref::
  Extracts and prints the Chrome commit position ref name only 
  (`ref/heads/master` or `refs/branch-heads/branchname` in the example above).


EXAMPLE
-------
demo:1[]

SEE ALSO
--------
linkgit:git-number[1]

include::_footer.txt[]

// vim: ft=asciidoc:

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
libv8-8.4.255.0.1 vendor/depot_tools/man/src/git-footers.txt
libv8-8.4.255.0 vendor/depot_tools/man/src/git-footers.txt
libv8-7.8.279.23.0beta1 vendor/depot_tools/man/src/git-footers.txt
libv8-7.4.288.28.0beta1 vendor/depot_tools/man/src/git-footers.txt
libv8-7.3.492.27.3beta1 vendor/depot_tools/man/src/git-footers.txt
libv8-7.3.492.27.1 vendor/depot_tools/man/src/git-footers.txt
libv8-7.3.492.27.0 vendor/depot_tools/man/src/git-footers.txt
libv8-7.3.492.27.0beta1 vendor/depot_tools/man/src/git-footers.txt
libv8-6.7.288.46.1 vendor/depot_tools/man/src/git-footers.txt
libv8-6.7.288.46.0 vendor/depot_tools/man/src/git-footers.txt
libv8-6.7.288.46.1beta0 vendor/depot_tools/man/src/git-footers.txt
libv8-6.3.292.48.1 vendor/depot_tools/man/src/git-footers.txt
libv8-6.3.292.48.0 vendor/depot_tools/man/src/git-footers.txt
libv8-6.3.292.48.0beta2 vendor/depot_tools/man/src/git-footers.txt
libv8-6.3.292.48.0beta1 vendor/depot_tools/man/src/git-footers.txt
libv8-6.2.414.42.1 vendor/depot_tools/man/src/git-footers.txt
libv8-6.2.414.42.0 vendor/depot_tools/man/src/git-footers.txt
libv8-6.2.414.42.0beta1 vendor/depot_tools/man/src/git-footers.txt
libv8-6.0.286.54.3 vendor/depot_tools/man/src/git-footers.txt
libv8-6.0.286.54.2 vendor/depot_tools/man/src/git-footers.txt