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

Re: [PATCH] repack: find -> /usr/bin/find, as for cygwin

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Mar 19, 2011, 16:07 UTC
Message-ID
<20110319160754.GA5871@do>
In-Reply-To
<4D84D0C0.7080808@lsrfire.ath.cx>
On Sat, Mar 19, 2011 at 04:50:24PM +0100, René Scharfe wrote:
> Do we need to support pack files in subdirectories of $PACKDIR?  If
> not -- and I don't immediately see why, except that the current code
> does with its find call -- then the following patch might be a quick
> bandaid.  Untested, please be careful.

I looked at test-lib.sh but forgot git-sh-setup.sh, which does aliasing for find in MINGW build. With your patch, the last use of find is gone. So we might as well do this

diff --git a/git-sh-setup.sh b/git-sh-setup.sh
index aa16b83..e891edc 100644
--- a/git-sh-setup.sh
+++ b/git-sh-setup.sh
@@ -232,9 +232,6 @@ case $(uname -s) in
 	sort () {
 		/usr/bin/sort "$@"
 	}
-	find () {
-		/usr/bin/find "$@"
-	}
 	is_absolute_path () {
 		case "$1" in
 		[/\\]* | [A-Za-z]:*)
-- 
Duy
Previous: René ScharfeNext: Nguyen Thai Ngoc Duy
Message 4 of 14 in “repack: find -> /usr/bin/find, as for cygwin”
  1. repack: find -> /usr/bin/find, as for cygwinryenus ◇, Mar 19, 2011
  2. Nguyen Thai Ngoc DuyMar 19, 2011
  3. René ScharfeMar 19, 2011
  4. Nguyen Thai Ngoc DuyMar 19, 2011
  5. Nguyen Thai Ngoc DuyMar 19, 2011
  6. ryenus ◇Mar 19, 2011
  7. ryenus ◇Mar 19, 2011
  8. Nguyen Thai Ngoc DuyMar 19, 2011
  9. Junio C HamanoMar 19, 2011
  10. ryenus ◇Mar 20, 2011
  11. ryenus ◇Mar 20, 2011
  12. Matthieu MoyMar 20, 2011
  13. ryenus ◇Mar 20, 2011
  14. Erik Faye-LundMar 21, 2011

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.