All of lore.kernel.org
 help / color / mirror / Atom feed
* git-cache-meta -- simple file meta data caching and applying
@ 2009-01-09  0:13 jidanni
  2009-01-09  0:22 ` Jay Soffian
  2009-01-09  4:29 ` Boyd Stephen Smith Jr.
  0 siblings, 2 replies; 6+ messages in thread
From: jidanni @ 2009-01-09  0:13 UTC (permalink / raw)
  To: git

Gentlemen, I have whipped up this:

#!/bin/sh -e
#git-cache-meta -- simple file meta data caching and applying.
#Simpler than etckeeper, metastore, setgitperms, etc.
: ${GIT_CACHE_META_FILE=.git_cache_meta}
case $@ in
    --store|--stdout)
	case $1 in --store) exec > $GIT_CACHE_META_FILE; esac
	find $(git ls-files) \
	    \( -user ${USER?} -o -printf 'chowm %u %p\n' \) \
	    \( -group $USER -o -printf 'chgrp %g %p\n' \) \
	    \( \( -type l -o -perm 755 -o -perm 644 \) -o -printf 'chmod %#m %p\n' \);;
    --apply) sh -e $GIT_CACHE_META_FILE;;
    *) 1>&2 echo "Usage: $0 --store|--stdout|--apply"; exit 1;;
esac

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-10 17:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-09  0:13 git-cache-meta -- simple file meta data caching and applying jidanni
2009-01-09  0:22 ` Jay Soffian
2009-01-09  0:28   ` Jay Soffian
2009-01-09  2:50     ` jidanni
2009-01-09  4:29 ` Boyd Stephen Smith Jr.
2009-01-10 17:43   ` [PATCH] git-cache-meta -- file owner and permissions caching, minimalist approach jidanni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.