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

[PATCH 2/2] cogito: understand permissions written as "100755"

From
PRPavel Roskin <proski@gnu.org>
Date
Mar 20, 2007, 17:04 UTC
Message-ID
<20070320170428.9139.69748.stgit@dv.roinet.com>
In-Reply-To
<20070320170423.9139.43914.stgit@dv.roinet.com>

The original code only recognized "755", which is not working anymore. This fixes t9204-merge-weird-conflicts.sh

Signed-off-by: Pavel Roskin <proski@gnu.org>
---
 cg-Xmergefile |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/cg-Xmergefile b/cg-Xmergefile
index ac9d356..1219d1f 100755
--- a/cg-Xmergefile
+++ b/cg-Xmergefile
@@ -53,11 +53,12 @@ warning()
 # PlusMinus+XModeChar ;-)
 pmxmc()
 {
-	if [ "$1" = "755" ]; then
-		_pmxmc=+
-	else
-		_pmxmc=-
-	fi
+	case "$1" in
+	*755)
+		_pmxmc=+;;
+	*)
+		_pmxmc=-;;
+	esac
 }
 
 # Set ways[] to the symbolic names of the particular ways
Previous: Pavel Roskin
Message 2 of 2 in “cogito: fix t9105-fetch-local.sh - use "git-fsck-objects --full"”
  1. 1/2 cogito: fix t9105-fetch-local.sh - use "git-fsck-objects --full"Pavel Roskin, Mar 20, 2007
  2. 2/2 cogito: understand permissions written as "100755"Pavel Roskin, Mar 20, 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.