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

[PATCH RFC v2 3/4] ref-filter: add tests for objectsize:disk

From
Olga Telezhnaya <olyatelezhnaya@gmail.com>
Date
May 18, 2018, 08:19 UTC
Message-ID
<010201637254ca06-74d231ce-8927-4928-964c-5170b1a919f8-000000@eu-west-1.amazonses.com>
In-Reply-To
<010201637254c969-a346030e-0b75-41ad-8ef3-2ac7e04ba4fb-000000@eu-west-1.amazonses.com>
Add tests for %(objectsize:disk) atom.
Signed-off-by: Olga Telezhnaia <olyatelezhnaya@gmail.com>
---
 t/t6300-for-each-ref.sh | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh
index 295d1475bde01..570bb606045d7 100755
--- a/t/t6300-for-each-ref.sh
+++ b/t/t6300-for-each-ref.sh
@@ -83,6 +83,7 @@ test_atom head push:strip=1 remotes/myfork/master
 test_atom head push:strip=-1 master
 test_atom head objecttype commit
 test_atom head objectsize 171
+test_atom head objectsize:disk 138
 test_atom head objectname $(git rev-parse refs/heads/master)
 test_atom head objectname:short $(git rev-parse --short refs/heads/master)
 test_atom head objectname:short=1 $(git rev-parse --short=1 refs/heads/master)
@@ -124,6 +125,7 @@ test_atom tag upstream ''
 test_atom tag push ''
 test_atom tag objecttype tag
 test_atom tag objectsize 154
+test_atom tag objectsize:disk 138
 test_atom tag objectname $(git rev-parse refs/tags/testtag)
 test_atom tag objectname:short $(git rev-parse --short refs/tags/testtag)
 test_atom head objectname:short=1 $(git rev-parse --short=1 refs/heads/master)

--
https://github.com/git/git/pull/493
Previous: Olga TelezhnayaNext: Olga Telezhnaya
Message 3 of 4 in “ref-filter: start using oid_object_info”
  1. 1/4 ref-filter: start using oid_object_infoOlga Telezhnaya, May 18, 2018
  2. 4/4 ref-filter: add deltabase formatting optionOlga Telezhnaya, May 18, 2018
  3. 3/4 ref-filter: add tests for objectsize:diskOlga Telezhnaya, May 18, 2018
  4. 2/4 ref-filter: add objectsize:disk formatting optionOlga Telezhnaya, May 18, 2018

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.