1 |
scarabeus 13/03/29 08:22:05 |
2 |
|
3 |
Added: gitg-0.2.6-fix-libreoffice.patch |
4 |
Removed: gitg-0.2.1-fix-disable-debug.patch |
5 |
Log: |
6 |
Version bump to latest and add patch to make it work with huge repos (libreoffice). Drop overshadowed packages to reduce versions clutter. |
7 |
|
8 |
(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-vcs/gitg/files/gitg-0.2.6-fix-libreoffice.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/gitg/files/gitg-0.2.6-fix-libreoffice.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/gitg/files/gitg-0.2.6-fix-libreoffice.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: gitg-0.2.6-fix-libreoffice.patch |
17 |
=================================================================== |
18 |
From 9fda4e3c22475059f4910d3072e01c4436bfeca9 Mon Sep 17 00:00:00 2001 |
19 |
From: Bjoern Michaelsen <bjoern.michaelsen@×××××××××.com> |
20 |
Date: Thu, 28 Mar 2013 00:08:17 +0100 |
21 |
Subject: [PATCH] lp#1056378: make end to nonsensical premature 8-bit |
22 |
optimization |
23 |
|
24 |
- 128 lanes are _not_ enough for everyone |
25 |
--- |
26 |
gitg/gitg-cell-renderer-path.c | 8 ++++---- |
27 |
libgitg/gitg-color.c | 6 +++--- |
28 |
libgitg/gitg-color.h | 2 +- |
29 |
libgitg/gitg-lane.h | 2 +- |
30 |
libgitg/gitg-lanes.c | 40 ++++++++++++++++++++-------------------- |
31 |
libgitg/gitg-lanes.h | 2 +- |
32 |
libgitg/gitg-repository.c | 4 ++-- |
33 |
libgitg/gitg-revision.c | 8 ++++---- |
34 |
libgitg/gitg-revision.h | 6 +++--- |
35 |
9 files changed, 39 insertions(+), 39 deletions(-) |
36 |
|
37 |
diff --git a/gitg/gitg-cell-renderer-path.c b/gitg/gitg-cell-renderer-path.c |
38 |
index 97902ee..e2ae957 100644 |
39 |
--- a/gitg/gitg-cell-renderer-path.c |
40 |
+++ b/gitg/gitg-cell-renderer-path.c |
41 |
@@ -151,7 +151,7 @@ static void |
42 |
draw_arrow (GitgCellRendererPath *self, |
43 |
cairo_t *cr, |
44 |
const GdkRectangle *area, |
45 |
- gint8 laneidx, |
46 |
+ gint32 laneidx, |
47 |
gboolean top) |
48 |
{ |
49 |
gdouble cw = self->priv->lane_width; |
50 |
@@ -187,7 +187,7 @@ draw_paths_real (GitgCellRendererPath *self, |
51 |
} |
52 |
|
53 |
GSList *lanes = gitg_revision_get_lanes (revision); |
54 |
- gint8 to = 0; |
55 |
+ gint32 to = 0; |
56 |
gdouble cw = self->priv->lane_width; |
57 |
gdouble ch = area->height / 2.0; |
58 |
GitgLane *lane; |
59 |
@@ -201,7 +201,7 @@ draw_paths_real (GitgCellRendererPath *self, |
60 |
|
61 |
for (item = lane->from; item; item = item->next) |
62 |
{ |
63 |
- gint8 from = (gint8)GPOINTER_TO_INT (item->data); |
64 |
+ gint32 from = (gint32)GPOINTER_TO_INT (item->data); |
65 |
|
66 |
cairo_move_to (cr, area->x + from * cw + cw / 2.0, |
67 |
area->y + yoffset * ch); |
68 |
@@ -241,7 +241,7 @@ draw_arrows (GitgCellRendererPath *self, |
69 |
const GdkRectangle *area) |
70 |
{ |
71 |
GSList *item; |
72 |
- gint8 to = 0; |
73 |
+ gint32 to = 0; |
74 |
|
75 |
for (item = gitg_revision_get_lanes (self->priv->revision); item; item = item->next) |
76 |
{ |
77 |
diff --git a/libgitg/gitg-color.c b/libgitg/gitg-color.c |
78 |
index d5eeb85..f13dd77 100644 |
79 |
--- a/libgitg/gitg-color.c |
80 |
+++ b/libgitg/gitg-color.c |
81 |
@@ -23,7 +23,7 @@ |
82 |
#include "gitg-color.h" |
83 |
#include <gdk/gdk.h> |
84 |
|
85 |
-static gint8 current_index = 0; |
86 |
+static gint32 current_index = 0; |
87 |
|
88 |
static gchar const *palette[] = { |
89 |
"#c4a000", |
90 |
@@ -72,10 +72,10 @@ gitg_color_set_cairo_source (GitgColor *color, cairo_t *cr) |
91 |
cairo_set_source_rgb(cr, r, g, b); |
92 |
} |
93 |
|
94 |
-static gint8 |
95 |
+static gint32 |
96 |
next_index () |
97 |
{ |
98 |
- gint8 next = current_index++; |
99 |
+ gint32 next = current_index++; |
100 |
|
101 |
if (current_index == sizeof(palette) / sizeof(gchar const *)) |
102 |
current_index = 0; |
103 |
diff --git a/libgitg/gitg-color.h b/libgitg/gitg-color.h |
104 |
index c3c9bd3..1968597 100644 |
105 |
--- a/libgitg/gitg-color.h |
106 |
+++ b/libgitg/gitg-color.h |
107 |
@@ -33,7 +33,7 @@ typedef struct _GitgColor GitgColor; |
108 |
struct _GitgColor |
109 |
{ |
110 |
gulong ref_count; |
111 |
- gint8 index; |
112 |
+ gint32 index; |
113 |
}; |
114 |
|
115 |
void gitg_color_reset (void); |
116 |
diff --git a/libgitg/gitg-lane.h b/libgitg/gitg-lane.h |
117 |
index 61664db..4ce0737 100644 |
118 |
--- a/libgitg/gitg-lane.h |
119 |
+++ b/libgitg/gitg-lane.h |
120 |
@@ -47,7 +47,7 @@ typedef struct |
121 |
{ |
122 |
GitgColor *color; /** Pointer to color */ |
123 |
GSList *from; /** List of lanes merging on this lane */ |
124 |
- gint8 type; |
125 |
+ gint32 type; |
126 |
} GitgLane; |
127 |
|
128 |
typedef struct |
129 |
diff --git a/libgitg/gitg-lanes.c b/libgitg/gitg-lanes.c |
130 |
index 41b8650..f3aaa61 100644 |
131 |
--- a/libgitg/gitg-lanes.c |
132 |
+++ b/libgitg/gitg-lanes.c |
133 |
@@ -46,7 +46,7 @@ typedef struct |
134 |
typedef struct |
135 |
{ |
136 |
GitgColor *color; |
137 |
- gint8 index; |
138 |
+ gint32 index; |
139 |
gchar const *from; |
140 |
gchar const *to; |
141 |
} CollapsedLane; |
142 |
@@ -109,10 +109,10 @@ free_lanes (GitgLanes *lanes) |
143 |
static LaneContainer * |
144 |
find_lane_by_hash (GitgLanes *lanes, |
145 |
gchar const *hash, |
146 |
- gint8 *pos) |
147 |
+ gint32 *pos) |
148 |
{ |
149 |
GSList *item; |
150 |
- gint8 p = 0; |
151 |
+ gint32 p = 0; |
152 |
|
153 |
if (!hash) |
154 |
{ |
155 |
@@ -344,14 +344,14 @@ lane_container_next (LaneContainer *container, |
156 |
|
157 |
static void |
158 |
update_lane_merge_indices (GSList *from, |
159 |
- gint8 index, |
160 |
+ gint32 index, |
161 |
gint direction) |
162 |
{ |
163 |
GSList *item; |
164 |
|
165 |
for (item = from; item; item = g_slist_next (item)) |
166 |
{ |
167 |
- gint8 idx = GPOINTER_TO_INT (item->data); |
168 |
+ gint32 idx = GPOINTER_TO_INT (item->data); |
169 |
|
170 |
if ((direction < 0 && idx > index) || (direction > 0 && idx >= index)) |
171 |
{ |
172 |
@@ -362,7 +362,7 @@ update_lane_merge_indices (GSList *from, |
173 |
|
174 |
static void |
175 |
update_merge_indices (GSList *lanes, |
176 |
- gint8 index, |
177 |
+ gint32 index, |
178 |
gint direction) |
179 |
{ |
180 |
GSList *item; |
181 |
@@ -378,7 +378,7 @@ update_merge_indices (GSList *lanes, |
182 |
static void |
183 |
add_collapsed (GitgLanes *lanes, |
184 |
LaneContainer *container, |
185 |
- gint8 index) |
186 |
+ gint32 index) |
187 |
{ |
188 |
CollapsedLane *collapsed = collapsed_lane_new (container); |
189 |
collapsed->index = index; |
190 |
@@ -389,7 +389,7 @@ add_collapsed (GitgLanes *lanes, |
191 |
static void |
192 |
collapse_lane (GitgLanes *lanes, |
193 |
LaneContainer *container, |
194 |
- gint8 index) |
195 |
+ gint32 index) |
196 |
{ |
197 |
/* backtrack for inactive-collapse revisions and remove this container from |
198 |
those revisions, appropriately updating merge indices etc */ |
199 |
@@ -409,7 +409,7 @@ collapse_lane (GitgLanes *lanes, |
200 |
GSList *collapsed = g_slist_nth(lns, index); |
201 |
GitgLane *lane = (GitgLane *)collapsed->data; |
202 |
|
203 |
- gint8 newindex = GPOINTER_TO_INT(lane->from->data); |
204 |
+ gint32 newindex = GPOINTER_TO_INT(lane->from->data); |
205 |
|
206 |
lns = gitg_revision_remove_lane(revision, lane); |
207 |
|
208 |
@@ -445,8 +445,8 @@ collapse_lane (GitgLanes *lanes, |
209 |
|
210 |
static void |
211 |
update_current_lanes_merge_indices (GitgLanes *lanes, |
212 |
- gint8 index, |
213 |
- gint8 direction) |
214 |
+ gint32 index, |
215 |
+ gint32 direction) |
216 |
{ |
217 |
GSList *item; |
218 |
|
219 |
@@ -462,7 +462,7 @@ static void |
220 |
collapse_lanes (GitgLanes *lanes) |
221 |
{ |
222 |
GSList *item = lanes->priv->lanes; |
223 |
- gint8 index = 0; |
224 |
+ gint32 index = 0; |
225 |
|
226 |
while (item) |
227 |
{ |
228 |
@@ -490,9 +490,9 @@ collapse_lanes (GitgLanes *lanes) |
229 |
} |
230 |
} |
231 |
|
232 |
-static gint8 |
233 |
+static gint32 |
234 |
ensure_correct_index (GitgRevision *revision, |
235 |
- gint8 index) |
236 |
+ gint32 index) |
237 |
{ |
238 |
guint len = g_slist_length (gitg_revision_get_lanes (revision)); |
239 |
|
240 |
@@ -509,11 +509,11 @@ expand_lane (GitgLanes *lanes, |
241 |
CollapsedLane *lane) |
242 |
{ |
243 |
GSList *item; |
244 |
- gint8 index = lane->index; |
245 |
+ gint32 index = lane->index; |
246 |
|
247 |
GitgLane *ln = gitg_lane_new_with_color (lane->color); |
248 |
guint len = g_slist_length (lanes->priv->lanes); |
249 |
- gint8 next; |
250 |
+ gint32 next; |
251 |
|
252 |
if (index > len) |
253 |
{ |
254 |
@@ -614,7 +614,7 @@ static void |
255 |
init_next_layer (GitgLanes *lanes) |
256 |
{ |
257 |
GSList *item = lanes->priv->lanes; |
258 |
- gint8 index = 0; |
259 |
+ gint32 index = 0; |
260 |
|
261 |
/* Initialize new set of lanes based on 'lanes'. It copies the lane (refs |
262 |
the color) and adds the lane index as a merge (so it basicly represents |
263 |
@@ -628,7 +628,7 @@ init_next_layer (GitgLanes *lanes) |
264 |
} |
265 |
|
266 |
static void |
267 |
-prepare_lanes (GitgLanes *lanes, GitgRevision *next, gint8 *pos) |
268 |
+prepare_lanes (GitgLanes *lanes, GitgRevision *next, gint32 *pos) |
269 |
{ |
270 |
LaneContainer *mylane; |
271 |
guint num; |
272 |
@@ -647,7 +647,7 @@ prepare_lanes (GitgLanes *lanes, GitgRevision *next, gint8 *pos) |
273 |
/* Iterate over all parents and find them a lane */ |
274 |
for (i = 0; i < num; ++i) |
275 |
{ |
276 |
- gint8 lnpos; |
277 |
+ gint32 lnpos; |
278 |
LaneContainer *container = find_lane_by_hash (lanes, parents[i], &lnpos); |
279 |
|
280 |
if (container) |
281 |
@@ -710,7 +710,7 @@ prepare_lanes (GitgLanes *lanes, GitgRevision *next, gint8 *pos) |
282 |
} |
283 |
|
284 |
GSList * |
285 |
-gitg_lanes_next (GitgLanes *lanes, GitgRevision *next, gint8 *nextpos) |
286 |
+gitg_lanes_next (GitgLanes *lanes, GitgRevision *next, gint32 *nextpos) |
287 |
{ |
288 |
LaneContainer *mylane; |
289 |
GSList *res; |
290 |
diff --git a/libgitg/gitg-lanes.h b/libgitg/gitg-lanes.h |
291 |
index ae71757..8e02bbb 100644 |
292 |
--- a/libgitg/gitg-lanes.h |
293 |
+++ b/libgitg/gitg-lanes.h |
294 |
@@ -55,7 +55,7 @@ GType gitg_lanes_get_type (void) G_GNUC_CONST; |
295 |
|
296 |
GitgLanes *gitg_lanes_new(void); |
297 |
void gitg_lanes_reset(GitgLanes *lanes); |
298 |
-GSList *gitg_lanes_next(GitgLanes *lanes, GitgRevision *next, gint8 *mylane); |
299 |
+GSList *gitg_lanes_next(GitgLanes *lanes, GitgRevision *next, gint32 *mylane); |
300 |
|
301 |
G_END_DECLS |
302 |
|
303 |
diff --git a/libgitg/gitg-repository.c b/libgitg/gitg-repository.c |
304 |
index f1d1b18..2751800 100644 |
305 |
--- a/libgitg/gitg-repository.c |
306 |
+++ b/libgitg/gitg-repository.c |
307 |
@@ -865,7 +865,7 @@ append_revision (GitgRepository *repository, |
308 |
GitgRevision *rv) |
309 |
{ |
310 |
GSList *lanes; |
311 |
- gint8 mylane = 0; |
312 |
+ gint32 mylane = 0; |
313 |
|
314 |
if (repository->priv->size == 0) |
315 |
{ |
316 |
@@ -1158,7 +1158,7 @@ repository_relane (GitgRepository *repository) |
317 |
|
318 |
for (i = 0; i < repository->priv->size; ++i) |
319 |
{ |
320 |
- gint8 mylane; |
321 |
+ gint32 mylane; |
322 |
GitgRevision *revision = repository->priv->storage[i]; |
323 |
|
324 |
GSList *lanes = gitg_lanes_next (repository->priv->lanes, |
325 |
diff --git a/libgitg/gitg-revision.c b/libgitg/gitg-revision.c |
326 |
index 579c878..37ca641 100644 |
327 |
--- a/libgitg/gitg-revision.c |
328 |
+++ b/libgitg/gitg-revision.c |
329 |
@@ -45,7 +45,7 @@ struct _GitgRevision |
330 |
char sign; |
331 |
|
332 |
GSList *lanes; |
333 |
- gint8 mylane; |
334 |
+ gint32 mylane; |
335 |
}; |
336 |
|
337 |
G_DEFINE_BOXED_TYPE (GitgRevision, gitg_revision, gitg_revision_ref, gitg_revision_unref) |
338 |
@@ -303,7 +303,7 @@ update_lane_type (GitgRevision *revision) |
339 |
void |
340 |
gitg_revision_set_lanes (GitgRevision *revision, |
341 |
GSList *lanes, |
342 |
- gint8 mylane) |
343 |
+ gint32 mylane) |
344 |
{ |
345 |
free_lanes (revision); |
346 |
revision->lanes = lanes; |
347 |
@@ -316,7 +316,7 @@ gitg_revision_set_lanes (GitgRevision *revision, |
348 |
update_lane_type (revision); |
349 |
} |
350 |
|
351 |
-gint8 |
352 |
+gint32 |
353 |
gitg_revision_get_mylane (GitgRevision *revision) |
354 |
{ |
355 |
return revision->mylane; |
356 |
@@ -324,7 +324,7 @@ gitg_revision_get_mylane (GitgRevision *revision) |
357 |
|
358 |
void |
359 |
gitg_revision_set_mylane (GitgRevision *revision, |
360 |
- gint8 mylane) |
361 |
+ gint32 mylane) |
362 |
{ |
363 |
g_return_if_fail (mylane >= 0); |
364 |
|
365 |
diff --git a/libgitg/gitg-revision.h b/libgitg/gitg-revision.h |
366 |
index e01a141..72051d7 100644 |
367 |
--- a/libgitg/gitg-revision.h |
368 |
+++ b/libgitg/gitg-revision.h |
369 |
@@ -64,13 +64,13 @@ gchar **gitg_revision_get_parents (GitgRevision *revision); |
370 |
|
371 |
GSList *gitg_revision_get_lanes (GitgRevision *revision); |
372 |
GitgLane *gitg_revision_get_lane (GitgRevision *revision); |
373 |
-void gitg_revision_set_lanes (GitgRevision *revision, GSList *lanes, gint8 mylane); |
374 |
+void gitg_revision_set_lanes (GitgRevision *revision, GSList *lanes, gint32 mylane); |
375 |
|
376 |
GSList *gitg_revision_remove_lane (GitgRevision *revision, GitgLane *lane); |
377 |
GSList *gitg_revision_insert_lane (GitgRevision *revision, GitgLane *lane, gint index); |
378 |
|
379 |
-gint8 gitg_revision_get_mylane (GitgRevision *revision); |
380 |
-void gitg_revision_set_mylane (GitgRevision *revision, gint8 mylane); |
381 |
+gint32 gitg_revision_get_mylane (GitgRevision *revision); |
382 |
+void gitg_revision_set_mylane (GitgRevision *revision, gint32 mylane); |
383 |
|
384 |
void gitg_revision_set_sign(GitgRevision *revision, char sign); |
385 |
char gitg_revision_get_sign(GitgRevision *revision); |
386 |
-- |
387 |
1.8.1.5 |