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

Re: A simple script to do the reverse of git-push

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 8, 2005, 23:38 UTC
Message-ID
<Pine.LNX.4.63.0508090135230.3695@wgmdd8.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7vslxk125f.fsf@assigned-by-dhcp.cox.net>
Hi,
On Mon, 8 Aug 2005, Junio C Hamano wrote:
Show 5 quoted lines
> We would need something like this.
>
> [...]
>
> +$(patsubst git-%,%.o,$(PROG)): $(LIB_H)
A short
	for i in git-*; do \
		c=$(echo $i|sed "s/git-\(.*\)/\1.c/g")
		if [ -e $c ]; then \
			if ! grep cache\\.h $c; then \
				echo $c does not depend on cache.h \
			fi \
		fi \
	done

(actually tested) reveals that only get-tar-commit-id.c and stripspace.c do not depend on cache.h or rev-cache.h. Thus, your patch is the most elegant solution to my problem :-)

Ciao, Dscho

Previous: Junio C HamanoNext: Petr Baudis
Message 3 of 4 in “A simple script to do the reverse of git-push”
  1. Johannes SchindelinAug 8, 2005
  2. Junio C HamanoAug 8, 2005
  3. Johannes SchindelinAug 8, 2005
  4. Petr BaudisAug 11, 2005

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.