git-rcs-keywords
git-rcs-keywords copied to clipboard
major enhancements (complete rewrite and new features):
- work on Windows (no more requirement of Unix "head")
- use IO::Open3 in place of ``: no shell is invoked anymore
- use custom log from git to limit output size and increase efficiency
- support for fixed-length keywords (ie. SVN $Author:: $)
- keep keyword case unchanged in both directions
- support for $Rev$ as well as for $Revision$
tested the original version and your PR and it doesn't work
On Mac: git version 1.8.2.1 (Mac), perl v5.12.4) built for darwin-thread-multi-2level Also on Ubuntu: git version 1.7.9.5, perl v5.14.2) built for x86_64-linux-gnu-thread-multi
Any idea?
I tested it with GIT 1.7.11/PERL 5.8.8 (mysysgit)
Does "git log -n 1 --format=%H%n%an%n%ai%n -- [myfile.ext]" work on your MAC? That's the onliest external command used in my script.
How do you install this script in your repo? On Windows, the copy of gitconfig is not sufficient, you need to exec "git config --add filter.rcs-keywords.smudge=.git_filters/rcs-keywords.smudge %f" and "git config --add filter.rcs-keywords.clean=.git_filters/rcs-keywords.clean".
$ git log -n 1 --format=%H%n%an%n%ai%n --
8397aca1886102ff386862bc64276df88089c5c7
Martin Turon
2011-04-12 02:52:44 -0700
I don't copy much, I just clone your repo directly and checking out the files and I should expect the changes, right?
$ git clone [email protected]:outchy/git-rcs-keywords.git
$ git checkout HEAD
$ head hello.c
/**
* @file hello.c
* @author @$Author$
* @date @$Date$
* @version @$Revision$
*
* $Id$
*/
I should expect the changes? Or did I miss something? I also tried to copy .gitconfig into my home ~/.gitconfig (not much difference).