Fórumok

embed git id in text file in project

thumbnail
Jack Bakker, módosítva 10 év-val korábban

embed git id in text file in project

Liferay Master Bejegyzések: 978 Csatlakozás dátuma: 2010.01.03. Legújabb bejegyzések
Any ide-as on how I might add to ant deploy to have a text file (say WEB-INF/gitinfo.txt) in any plugin which has the git id referenced in it ?
thumbnail
David H Nebinger, módosítva 10 év-val korábban

RE: embed git id in text file in project

Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Google suggested this post on stackoverflow: http://stackoverflow.com/questions/384108/moving-from-cvs-to-git-id-equivalent

By now there is support for $Id:$ in Git. To enable it for file README you would put "README ident" into .gitattributes. Wildcards on file names are supported. See man gitattributes for details.


There's more relevant details in the stack overflow page, some pros and negatives, etc.
thumbnail
Jack Bakker, módosítva 9 év-val korábban

RE: embed git id in text file in project

Liferay Master Bejegyzések: 978 Csatlakozás dátuma: 2010.01.03. Legújabb bejegyzések
Thanks again David. I still have to dig further on this on how to implement but would certainly be a useful feature given all the volleying around of code amongst developers.

Is the sky blue ? no it is bleu ; oh I see, look to sky-portlet [master cf086c9e5f459269ced814e42e49c3ae63f62a9d)