
Dear Kim Phillips,
In message 20100607165650.9894b805.kim.phillips@freescale.com you wrote:
I haven't seen any patches implementing this yet - am I missing something?
rather than provide a (deficient) patch, I decided to provide basic instructions on how to enable the feature, because you still have to do the:
Thanks for the recipe.
The other part (which the patch below does very trivially) is adding the snapshot.commit file, which effectively replaces the CHANGELOG by being filled with the commit id sha upon each git export. I just wasn't sure if you felt like adding more reference data into the file - see man gitattributes (search for export-subst), and placeholders under PRETTY FORMATS of man git log - looking at the list now however, I'm pretty sure just he commit id sha is enough, so here you go.
Well, I decided to add a "%cD" for easy classification.
Applied:
From b1f95b4438a6d44e12f04e7f51412f7a711ef87b Mon Sep 17 00:00:00 2001
From: Wolfgang Denk wd@denx.de Date: Sat, 7 Aug 2010 00:32:50 +0200 Subject: [PATCH] Replace CHANGELOG files by auto-generated "snapshot.commit"
Idea and implementation courtesy of Kim Phillips kim.phillips@freescale.com
Signed-off-by: Wolfgang Denk wd@denx.de --- CHANGELOG |88970 ----------------------------------------- CHANGELOG-before-U-Boot-1.1.5 | 5607 --- snapshot.commit | 1 + 3 files changed, 1 insertions(+), 94577 deletions(-) delete mode 100644 CHANGELOG delete mode 100644 CHANGELOG-before-U-Boot-1.1.5 create mode 100644 snapshot.commit
diff --git a/CHANGELOG b/CHANGELOG deleted file mode 100644
diff --git a/CHANGELOG-before-U-Boot-1.1.5 b/CHANGELOG-before-U-Boot-1.1.5 deleted file mode 100644
diff --git a/snapshot.commit b/snapshot.commit new file mode 100644 index 0000000..8d26309 --- /dev/null +++ b/snapshot.commit @@ -0,0 +1 @@ +$Format:%H %cD$