Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6813 closed enhancement (fixed)

Optimize git log date retrieval in Makefile

Reported by: craga89 Owned by:
Priority: Milestone: 1.4.3
Component: build Version: 1.4.2
Keywords: gitlog date build Cc:
Blocked by: Blocking:


Current Makefile grabs the last commit date using a long-winded git/grep/sed chain.

DATE=git log -1 | grep Date: | sed 's/[^:]*: *//'

This can be retrieved much more easily by using gitlog's format option:

DATE=git log --pretty=format:'%ad' -1


Change History (1)

comment:1 Changed 13 years ago by kswedberg

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.