mirror of https://github.com/CGAL/cgal
New ruby program to use as a smudge filter for Git.
See: http://git-scm.com/book/ch7-2.html#Keyword-Expansion
This commit is contained in:
parent
14221e947f
commit
a95e15585a
|
|
@ -0,0 +1,4 @@
|
||||||
|
#! /usr/bin/env ruby
|
||||||
|
data = STDIN.read
|
||||||
|
last_date = `git log --pretty=format:"%ad" -1`
|
||||||
|
puts data.gsub('$Date$', '$Date: ' + last_date.to_s + '$')
|
||||||
Loading…
Reference in New Issue