Changeset e6f9145 in git for .gitattributes

Timestamp:
Feb 1, 2012, 6:42:58 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
40d23c7f77e530a11d3b7573dcfcb5f33ffcaac6
Parents:
af6ba3f929c9985b0ca72e5dd515335e6d734f7e
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-01 18:42:58+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-13 17:13:26+01:00
Message:
setting up the git tagging with $Id$: libs + singular version

FIX: cleanning the mess of legacy Singular versioning (only started)

NOTE: for expanding tags for Singular/version.h do as follows:
add "Singular/version.h filter=expand_id" to .gitattributes or .git/info/attributs
and run something line the following:
$ git config filter.expand_id.smudge expand_id
$ git config filter.expand_id.clean 'perl -pe "s/\\\$Id[^\\\$]*\\\$/\\\$Id\\\$/"'

expand_id can be as follows

data = STDIN.read
last_date = git log --pretty=format:"%H, %cd" -1
puts data.gsub('$Id$', '$Id: ' + last_date.to_s + '$')
File:
1 added

Note: See TracChangeset for help on using the changeset viewer.