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

Re: [PATCH v5 2/5] git-submodule summary: show commit summary

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 12, 2008, 06:15 UTC
Message-ID
<7vmyp479i9.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<46dff0320803112128j23337873jf1fb12f5716151d8@mail.gmail.com>
"Ping Yin" <pkufranky@gmail.com> writes:
Show 13 quoted lines
> On Wed, Mar 12, 2008 at 12:12 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> --- a/git-submodule.sh
>>  +++ b/git-submodule.sh
>>  @@ -400,7 +400,7 @@ cmd_summary() {
>>
>>                                 160000)
>>                                 sha1_dst=$(GIT_DIR="$name/.git" git rev-parse HEAD)
>>                                 ;;
>>  -                               100644)
>>  +                               100644 | 100755 | 120000)
>>
> Are 644 and 755 file permission bit? If it is, how about the other
> cases (655, 744 and so on)?

They never appear, as git tracks only one executable bit, so mode bits for regular file blobs are canonicalized to either 100755 or 100644.

Don't you ever see 000000 mode bits here? There is no case arm for that in the code.

Previous: Ping YinNext: Ping Yin
Message 12 of 14 in “git-submodule summary”
  1. 0/5 git-submodule summaryPing Yin, Mar 11, 2008
  2. 1/5 git-submodule summary: code frameworkPing Yin, Mar 11, 2008
  3. 2/5 git-submodule summary: show commit summaryPing Yin, Mar 11, 2008
  4. 3/5 git-submodule summary: limit summary sizePing Yin, Mar 11, 2008
  5. 4/5 git-submodule summary: documentationPing Yin, Mar 11, 2008
  6. 5/5 git-submodule summary: testPing Yin, Mar 11, 2008
  7. Ping YinMar 12, 2008
  8. Junio C HamanoMar 12, 2008
  9. Ping YinMar 12, 2008
  10. Junio C HamanoMar 12, 2008
  11. Ping YinMar 12, 2008
  12. Junio C HamanoMar 12, 2008
  13. Ping YinMar 12, 2008
  14. git-submodule summary: fix that some "wc" flavors produce leading spacesJohannes Sixt, Mar 12, 2008

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.