Commit f1bf4ee
committed
gitk: Cope better with getting commits that we have already seen
This fixes a bug in updating the graph after we have cherry-picked
a commit in gitk and then added some new stuff externally. First,
we weren't updating viewincl with the new head added by the cherry-
pick. Secondly, getcommitlines was doing bad things if it saw a
commit that was already in the graph (was already in an arc). This
fixes both things. If getcommitlines sees a commit that is already
in the graph, it ignores it unless it was not listed before and is
listed now. In that case it doesn't assign it a new arc now, and
doesn't re-add the commit to its arc.
Signed-off-by: Paul Mackerras <paulus@samba.org>1 parent b8a938c commit f1bf4ee
1 file changed
+18
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1065 | 1065 | | |
1066 | 1066 | | |
1067 | 1067 | | |
1068 | | - | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1069 | 1073 | | |
1070 | 1074 | | |
1071 | 1075 | | |
| |||
1074 | 1078 | | |
1075 | 1079 | | |
1076 | 1080 | | |
1077 | | - | |
1078 | 1081 | | |
1079 | 1082 | | |
1080 | | - | |
| 1083 | + | |
1081 | 1084 | | |
1082 | 1085 | | |
1083 | 1086 | | |
| |||
1089 | 1092 | | |
1090 | 1093 | | |
1091 | 1094 | | |
1092 | | - | |
1093 | 1095 | | |
1094 | 1096 | | |
1095 | 1097 | | |
1096 | | - | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1097 | 1103 | | |
1098 | 1104 | | |
1099 | 1105 | | |
| |||
1112 | 1118 | | |
1113 | 1119 | | |
1114 | 1120 | | |
1115 | | - | |
1116 | 1121 | | |
1117 | 1122 | | |
1118 | 1123 | | |
| |||
7035 | 7040 | | |
7036 | 7041 | | |
7037 | 7042 | | |
7038 | | - | |
| 7043 | + | |
7039 | 7044 | | |
7040 | 7045 | | |
7041 | 7046 | | |
| |||
7069 | 7074 | | |
7070 | 7075 | | |
7071 | 7076 | | |
| 7077 | + | |
| 7078 | + | |
| 7079 | + | |
| 7080 | + | |
| 7081 | + | |
| 7082 | + | |
7072 | 7083 | | |
7073 | 7084 | | |
7074 | 7085 | | |
| |||
0 commit comments