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

bug report git ls-files format

From
MMMartin Monperrus <martin.monperrus@gnieh.org>
Date
May 13, 2023, 05:55 UTC
Message-ID
<21183ea9-84e2-fd89-eb9b-419556680c07@gnieh.org>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
Run `git ls-files . --format="%(objectmode) %(objecttype) %(objectname)%x09%(path)"`
What did you expect to happen? (Expected behavior)
Have the full output per the format specifier
What happened instead? (Actual behavior)
fatal: bad ls-files format: %(objecttype)
What's different between what you expected and what actually happened?

%(objecttype) is not supported. It is supported in git ls-tree. For sake of consistency it would be good to have it here.

Anything else you want to add:

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.40.1 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 5.15.0-69-generic #76-Ubuntu SMP Fri Mar 17 17:19:29 UTC 2023 x86_64 compiler info: gnuc: 12.2 libc info: glibc: 2.35 $SHELL (typically, interactive shell): /bin/bash

[Enabled Hooks] pre-commit

Next: ZheNing Hu
Message 1 of 2 in “bug report git ls-files format”
  1. Martin MonperrusMay 13, 2023
  2. ZheNing HuMay 13, 2023

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.