gix_filter

Module 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 in src and write all changes to buf, with object_hash being used accordingly. Return true if buf was written to or false if no change was made (as there was nothing to do).
  • Undo identifiers like $Id:<hexsha>$ to $Id$ in src and write to buf. Newlines between dollars are ignored. Return true if buf was written or false if src was left unaltered (as there was nothing to do).