On Mon, 7 Jun 2010 22:40:27 +0200
Wolfgang Denk <w...@denx.de> wrote:

> Applied, thanks.

Thanks.

> > Also, I've noticed main CHANGELOG updates are still being performed:
> 
> Yes, as we don't have a new solution implemented yet.
> 
> > Any news wrt implementing a gitattributes based solution instead?:
> > 
> > http://lists.denx.de/pipermail/u-boot/2010-May/071118.html
> 
> 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:

echo 'snapshot.commit export-subst' > .git/info/attributes

to each repo that is subject to exports (and that file, being
under .git/, has to be manually patched).

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.

Kim

>From c6dd2acf44aecfd2f17329f96f60d028932632b0 Mon Sep 17 00:00:00 2001
From: Kim Phillips <kim.phill...@freescale.com>
Date: Mon, 7 Jun 2010 16:18:35 -0500
Subject: [PATCH] add snapshot.commit file

---
 snapshot.commit |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 snapshot.commit

diff --git a/snapshot.commit b/snapshot.commit
new file mode 100644
index 0000000..6828f88
--- /dev/null
+++ b/snapshot.commit
@@ -0,0 +1 @@
+$Format:%H$
-- 
1.7.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to