Skip to content

Instantly share code, notes, and snippets.

@yukikaoru
Created July 24, 2010 14:15
Show Gist options
  • Save yukikaoru/488712 to your computer and use it in GitHub Desktop.
Save yukikaoru/488712 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
data = STDIN.read
ident = `git log -1 --pretty=format:"%h %cd %cn"`
puts data.gsub /\$Id(:?|:.*)\$/, "$Id: #{ident.to_s} $"
@yukikaoru
Copy link
Author

# $HOME/.gitconfig
[filter "ident_ex"]
    clean = "git_filter_ident_ex"
    smudge = cat
#.gitattributes
*.rb filter=ident_ex
git config user.name Your SVN Name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment