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 insrcand write all changes tobuf, withobject_hashbeing used accordingly. Returntrueifbufwas written to orfalseif no change was made (as there was nothing to do). - Undo identifiers like
$Id:<hexsha>$to$Id$insrcand write tobuf. Newlines between dollars are ignored. Returntrueifbufwas written orfalseifsrcwas left unaltered (as there was nothing to do).