Commit 5ece083
committed
push: further clean up fields of "struct ref"
The "nonfastforward" and "update" fields are only used while
deciding what value to assign to the "status" locally in a single
function. Remove them from the "struct ref".
The "requires_force" field is not used to decide if the proposed
update requires a --force option to succeed, or to record such a
decision made elsewhere. It is used by status reporting code that
the particular update was "forced". Rename it to "forced_update",
and move the code to assign to it around to further clarify how it
is used and what it is used for.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 256b9d7 commit 5ece083
3 files changed
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1001 | 1001 | | |
1002 | 1002 | | |
1003 | 1003 | | |
1004 | | - | |
| 1004 | + | |
1005 | 1005 | | |
1006 | | - | |
1007 | | - | |
1008 | 1006 | | |
1009 | 1007 | | |
1010 | 1008 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1317 | 1317 | | |
1318 | 1318 | | |
1319 | 1319 | | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
| 1320 | + | |
| 1321 | + | |
1326 | 1322 | | |
1327 | | - | |
| 1323 | + | |
1328 | 1324 | | |
1329 | 1325 | | |
1330 | | - | |
1331 | 1326 | | |
1332 | 1327 | | |
1333 | 1328 | | |
1334 | 1329 | | |
1335 | | - | |
1336 | | - | |
| 1330 | + | |
| 1331 | + | |
1337 | 1332 | | |
1338 | 1333 | | |
1339 | 1334 | | |
1340 | 1335 | | |
| 1336 | + | |
1341 | 1337 | | |
1342 | 1338 | | |
1343 | 1339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | | - | |
| 662 | + | |
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| |||
0 commit comments