Commit 67e1a78
pack-objects: factor out handling '--stdin-packs'
At the bottom of cmd_pack_objects() we check which mode the command is
running in (e.g., generating a cruft pack, handling '--stdin-packs',
using the internal rev-list, etc.) and handle the mode appropriately.
The '--stdin-packs' case is handled inline (dating back to its
introduction in 339bce2 (builtin/pack-objects.c: add '--stdin-packs'
option, 2021-02-22)) since it is relatively short. Extract the body of
"if (stdin_packs)" into its own function to prepare for the
implementation to become lengthier in a following commit.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 9809d4a commit 67e1a78
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3909 | 3909 | | |
3910 | 3910 | | |
3911 | 3911 | | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
3912 | 3923 | | |
3913 | 3924 | | |
3914 | 3925 | | |
| |||
4004 | 4015 | | |
4005 | 4016 | | |
4006 | 4017 | | |
4007 | | - | |
4008 | 4018 | | |
4009 | 4019 | | |
4010 | 4020 | | |
| |||
5135 | 5145 | | |
5136 | 5146 | | |
5137 | 5147 | | |
5138 | | - | |
5139 | | - | |
5140 | | - | |
5141 | | - | |
5142 | | - | |
| 5148 | + | |
5143 | 5149 | | |
5144 | 5150 | | |
5145 | 5151 | | |
| |||
0 commit comments