git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] support `--oid-only` in `ls-tree`
@ 2021-11-15 11:44 Teng Long
  0 siblings, 0 replies; 7+ messages in thread
From: Teng Long @ 2021-11-15 11:44 UTC (permalink / raw)
  To: git; +Cc: gitster, peff, Teng Long

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


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/3] support `--oid-only` in `ls-tree`
@ 2021-11-15 11:51 Teng Long
  2021-11-15 15:13 ` Ævar Arnfjörð Bjarmason
  2021-11-15 19:23 ` Jeff King
  0 siblings, 2 replies; 7+ messages in thread
From: Teng Long @ 2021-11-15 11:51 UTC (permalink / raw)
  To: git; +Cc: gitster, peff, Teng Long

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-19  2:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-15 11:44 [PATCH 0/3] support `--oid-only` in `ls-tree` Teng Long
  -- strict thread matches above, loose matches on Subject: below --
2021-11-15 11:51 Teng Long
2021-11-15 15:13 ` Ævar Arnfjörð Bjarmason
2021-11-15 19:09   ` Jeff King
2021-11-15 21:50     ` Ævar Arnfjörð Bjarmason
2021-11-19  2:57       ` Teng Long
2021-11-15 19:23 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).