Module gix_filter::ident
source · Expand description
a filter to replace $Id$
with a git-hash of the buffer.
Functions§
- Substitute all occurrences of
$Id$
with$Id: <hexsha-of-input>$
if present insrc
and write all changes tobuf
, withobject_hash
being used accordingly. Returntrue
ifbuf
was written to orfalse
if no change was made (as there was nothing to do). - Undo identifiers like
$Id:<hexsha>$
to$Id$
insrc
and write tobuf
. Newlines between dollars are ignored. Returntrue
ifbuf
was written orfalse
ifsrc
was left unaltered (as there was nothing to do).