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

[PATCH 0/3] support `--oid-only` in `ls-tree`

From
Teng Long <dyroneteng@gmail.com>
Date
Nov 15, 2021, 11:44 UTC
Message-ID
<20211115114403.47877-1-dyroneteng@gmail.com>

Sometimes, we only want to get the objects from output of `ls-tree` and commands like `sed` or `cut` is usually used to intercept the origin output to achieve this purpose in practical.

The patch contains three commits
    1. Implementation of the option.
    2. Add new tests in "t3104".
    3. Documentation modifications.
I'm appreciate if someone help to review the patch.
Thanks.
Teng Long (3):
  ls-tree.c: support `--oid-only` option for "git-ls-tree"
  t3104: add related tests for `--oid-only` option
  git-ls-tree.txt: description of the 'oid-only' option
 Documentation/git-ls-tree.txt |  8 +++--
 builtin/ls-tree.c             | 11 +++++++
 t/t3104-ls-tree-oid.sh        | 55 +++++++++++++++++++++++++++++++++++
 3 files changed, 72 insertions(+), 2 deletions(-)
 create mode 100755 t/t3104-ls-tree-oid.sh
-- 
2.33.1.9.g5fbd2fc599.dirty
Message 1 of 1 in “support `--oid-only` in `ls-tree`”
  1. 0/3 support `--oid-only` in `ls-tree`Teng Long, Nov 15, 2021

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.