git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's cooking in git/spearce.git (topics)

From
Theodore Tso <tytso@mit.edu>
Date
Oct 16, 2007, 19:57 UTC
Message-ID
<20071016195744.GB32132@closure.lan>
In-Reply-To
<Pine.LNX.4.64.0710161209480.25221@racer.site>
On Tue, Oct 16, 2007 at 12:16:28PM +0100, Johannes Schindelin wrote:
> 
> first let me thank you for being the interim maintainer.  I know it is 
> much work, and I frankly do not have the time, or nerve, to do it.  Out of 
> curiousity: did you use the scripts in "todo" to send these emails?

I've recently started trying to use some of the scripts in "todo" to send similar "What's cooking" messages, and started wondering if they were what Junio actually used in production to send his notes. For example, the scripts don't work particularly well if the refs have been packed. So I had to make changes such as these so they would work for me.

I was waiting for Junio to get back from vacation to ask if he was interested in accepting such changes, and/or changes to make the scripts more general purpose, and possibly useful for other projects.

		     	      	     	       - Ted
diff --git a/PU b/PU
index 4b4be2b..4643a42 100755
--- a/PU
+++ b/PU
@@ -26,8 +26,8 @@ case "$#" in
 0)
 	# interactive ;-)
 	shift
-	HH=`cd .git/refs/heads && find -type f |
-	sed -e 's/^\.\///' \
+	HH=`git-show-ref --heads | awk '{print $2}' |\
+	sed -e 's;refs/heads/;;' \
 	    -e '/^naster$/d' -e '/^master$/d' -e '/^maint$/d' -e '/^pu$/d'`
 	while test "$HH"
 	do
diff --git a/RB b/RB
index 918a372..a890cfd 100755
--- a/RB
+++ b/RB
@@ -3,9 +3,9 @@
 master_sha1=`git rev-parse --verify refs/heads/master`
 LF='
 '
-(cd .git/refs/heads && find -type f) |
+git-show-ref --heads | awk '{print $2}' |
 sed -n \
-    -e 's/^\.\///' \
+    -e 's;refs/heads/;;' \
     -e '/^[^\/][^\/]\//p' |
 while read topic
 do
Previous: Johannes SchindelinNext: Shawn O. Pearce
Message 3 of 21 in “What's cooking in git/spearce.git (topics)”
  1. Shawn O. PearceOct 16, 2007
  2. Johannes SchindelinOct 16, 2007
  3. Theodore TsoOct 16, 2007
  4. Shawn O. PearceOct 17, 2007
  5. Junio C HamanoOct 23, 2007
  6. Theodore TsoOct 23, 2007
  7. Junio C HamanoOct 23, 2007
  8. Theodore TsoOct 23, 2007
  9. Shawn O. PearceOct 23, 2007
  10. Theodore TsoOct 23, 2007
  11. Shawn O. PearceOct 23, 2007
  12. Theodore TsoOct 23, 2007
  13. Shawn O. PearceOct 23, 2007
  14. Theodore TsoOct 23, 2007
  15. Shawn O. PearceOct 23, 2007
  16. Theodore TsoOct 23, 2007
  17. Daniel BarkalowOct 23, 2007
  18. Junio C HamanoOct 23, 2007
  19. Theodore TsoOct 24, 2007
  20. Shawn O. PearceOct 23, 2007
  21. Shawn O. PearceOct 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.