Files
git/Documentation
Christian Couder b6839fda68 ref-filter: add support for %(contents:size)
It's useful and efficient to be able to get the size of the
contents directly without having to pipe through `wc -c`.

Also the result of the following:

`git for-each-ref --format='%(contents)' refs/heads/my-branch | wc -c`

is off by one as `git for-each-ref` appends a newline character
after the contents, which can be seen by comparing its output
with the output from `git cat-file`.

As with %(contents), %(contents:size) is silently ignored, if a
ref points to something other than a commit or a tag:

```
$ git update-ref refs/mytrees/first HEAD^{tree}
$ git for-each-ref --format='%(contents)' refs/mytrees/first

$ git for-each-ref --format='%(contents:size)' refs/mytrees/first

```

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2020-07-16 10:46:55 -07:00
..
2020-07-06 22:09:16 -07:00
2020-07-06 22:13:31 -07:00
2019-05-09 00:37:27 +09:00
2020-05-01 13:39:56 -07:00
2018-06-25 13:22:36 -07:00
2020-02-14 08:58:53 -08:00
2020-04-29 16:15:27 -07:00
2019-08-11 17:40:07 -07:00
2019-04-02 13:57:00 +09:00
2019-08-11 17:40:07 -07:00
2019-01-23 11:37:29 -08:00
2020-06-22 15:55:02 -07:00
2020-05-02 18:04:12 -07:00
2018-12-26 14:59:37 -08:00
2020-05-26 09:32:08 -07:00
2019-05-07 13:04:48 +09:00
2019-05-07 13:04:48 +09:00
2020-06-09 13:48:17 -07:00
2020-07-06 22:09:16 -07:00
2019-10-21 12:02:39 +09:00