Side navigation
#6813 closed enhancement (fixed)
Opened July 21, 2010 12:24PM UTC
Closed July 21, 2010 08:38PM UTC
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: |
Description
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
http://github.com/Craga89/jquery/commit/5e7307dae91910f1c5cb937064bde9af780c8798
Attachments (0)
Change History (1)
Changed July 21, 2010 08:38PM UTC by comment:1
resolution: | → fixed |
---|---|
status: | new → closed |
This is fixed in http://github.com/jquery/jquery/commit/4ec1b743a81256ae15907e46260cfc8edc6f06b8