Commit 43bc3b6
refs: simplify parsing of reflog entries
The current code for reflog entries uses a lot of hard-coded constants,
making it hard to read and modify. Use parse_oid_hex and two temporary
variables to simplify the code and reduce the use of magic constants.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 9461d27 commit 43bc3b6
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3117 | 3117 | | |
3118 | 3118 | | |
3119 | 3119 | | |
| 3120 | + | |
3120 | 3121 | | |
3121 | 3122 | | |
3122 | | - | |
3123 | | - | |
3124 | | - | |
3125 | | - | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
| 3126 | + | |
3126 | 3127 | | |
3127 | 3128 | | |
3128 | 3129 | | |
| |||
3136 | 3137 | | |
3137 | 3138 | | |
3138 | 3139 | | |
3139 | | - | |
| 3140 | + | |
3140 | 3141 | | |
3141 | 3142 | | |
3142 | 3143 | | |
| |||
0 commit comments