Updating branch refs/heads/master
         to af1a4ab76f6510013ac612305c500f52fed83963 (commit)
       from 2b05494d9283fa7d0f6078705be33e907b5c3a6f (commit)

commit af1a4ab76f6510013ac612305c500f52fed83963
Author: Nick Schermer <n...@xfce.org>
Date:   Mon Nov 8 23:51:54 2010 +0100

    Add new hook to store last-modified file for cgit.
    
    This is somewhat faster for the cgit index page.

 hooks/post-update-04-cgit |    4 ++++
 post-update               |    3 ++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/hooks/post-update-04-cgit b/hooks/post-update-04-cgit
new file mode 100755
index 0000000..31c1424
--- /dev/null
+++ b/hooks/post-update-04-cgit
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+git for-each-ref --format="%(committerdate)" --sort=-committerdate \
+  --count=1 > $GIT_DIR/info/cgit-last-modified
diff --git a/post-update b/post-update
index ac3571c..ae21d3c 100755
--- a/post-update
+++ b/post-update
@@ -15,4 +15,5 @@ unset parent path
 echo ">> update server info" &&
 $XFCE_GIT_HOOK_DIR/hooks/post-update-01-server-info &&
 echo ">> update Xfce website" &&
-$XFCE_GIT_HOOK_DIR/hooks/post-update-03-www-pull
+$XFCE_GIT_HOOK_DIR/hooks/post-update-03-www-pull &&
+$XFCE_GIT_HOOK_DIR/hooks/post-update-04-cgit
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to