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

Re: What's in git.git and announcing v1.4.1-rc1

From
Junio C Hamano <junkio@cox.net>
Date
Jun 22, 2006, 22:38 UTC
Message-ID
<7vsllwhl3h.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7v7j38j144.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 8 quoted lines
> Well, I admit I do not use colorized diffs myself.  As a matter
> of fact, I use specialized terminfo to disable coloring on my
> terminal session, since fontifying in GNUS otherwise gives me
> unreadable screen and I am too lazy to figure out how to turn it
> off.
>
> I do however usually test colored stuff with at least white and
> black backgrounds,
By the way, in the ancient history, in commit 3443546 you did:
--- a/Makefile
+++ b/Makefile
@@ -544,12 +545,18 @@ init-db.o: init-db.c
                -DDEFAULT_GIT_TEMPLATE_DIR='"$(template_dir_SQ)"' $*.c

 $(LIB_OBJS): $(LIB_H)
-$(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIB_H)
+$(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIBS)
 $(DIFF_OBJS): diffcore.h

 $(LIB_FILE): $(LIB_OBJS)
        $(AR) rcs $@ $(LIB_OBJS)

which we kept until today.  This causes checkout-index.o and
friends to be recompiled when we touch diff.c (I do not mind
relinking git-checkout-index because libgit.a has changed, but
recompiling checkout-index.c is unneeded).  I think this was
done to make sure anything that includes xdiff/*.h files via
"xdiff-interface.h" are recompiled when xdiff/*.h are changed,
so I am thinking about loosening it a bit to depend on our
headers and xdiff/*.h headers, perhaps like this:

diff --git a/Makefile b/Makefile
index a5b6784..e29e3fa 100644
--- a/Makefile
+++ b/Makefile
@@ -582,7 +582,7 @@ git-http-push$X: revision.o http.o http-
 		$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
 
 $(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H)
-$(patsubst git-%$X,%.o,$(PROGRAMS)): $(GITLIBS)
+$(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIB_H) $(wildcard */*.h)
 $(DIFF_OBJS): diffcore.h
 
 $(LIB_FILE): $(LIB_OBJS)
diff --git a/diff.c b/diff.c
diff --git a/xdiff/xdiff.h b/xdiff/xdiff.h
Previous: Junio C HamanoNext: Johannes Schindelin
Message 11 of 18 in “What's in git.git and announcing v1.4.1-rc1”
  1. Junio C HamanoJun 22, 2006
  2. Junio C HamanoJun 22, 2006
  3. Paolo CiarrocchiJun 22, 2006
  4. Linus TorvaldsJun 22, 2006
  5. Petr BaudisJun 22, 2006
  6. Linus TorvaldsJun 22, 2006
  7. Jakub NarebskiJun 22, 2006
  8. Petr BaudisJun 22, 2006
  9. Johannes SchindelinJun 23, 2006
  10. Junio C HamanoJun 22, 2006
  11. Junio C HamanoJun 22, 2006
  12. Johannes SchindelinJun 23, 2006
  13. Pádraig BradyJun 23, 2006
  14. Johannes SchindelinJun 23, 2006
  15. Linus TorvaldsJun 23, 2006
  16. diff --color: use $GIT_DIR/configJunio C Hamano, Jun 24, 2006
  17. Johannes SchindelinJun 24, 2006
  18. diff --color: use reset sequence when we mean reset.Junio C Hamano, Jun 24, 2006

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.