Skip to content

Using a bit more decoration

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3commit: shrink "indegree" fieldcommit.c commit.h+40 -81 reply
2/3commit: rename parse_commit_date()commit.c+19 -130 replies
3/3commit: add get_commit_encoding()commit.c commit.h pretty.c +1 more+64 -570 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Using a bit more decoration

This comes on top of the two "decorate" patches that introduced the clear_decoration() function.

I am not sure if pre-parsing and sharing the encoding values in-core would affect performance very much, but now we have 2 bytes (or 6 bytes, if you are on 64-bit archs) free to use in "struct commit" for later use (e.g. extra object flags that are relevant only for commit objects, without having to widen "struct object").

Junio C Hamano (3):
commit: shrink "indegree" field
commit: rename parse_commit_date()
commit: add get_commit_encoding()

 commit.c    | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++----------
 commit.h    |   5 ++-
 pretty.c    |  33 +--------------
 sequencer.c |  23 +---------
 4 files changed, 122 insertions(+), 77 deletions(-)
Signature · 1 line
1.8.2.1-450-gd047976