@@ -40,7 +40,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
4040 endIdx int
4141 showGraph bool
4242 bisectInfo * git_commands.BisectInfo
43- showYouAreHereLabel bool
4443 expected string
4544 focus bool
4645 }{
@@ -223,12 +222,11 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
223222 showGraph : true ,
224223 bisectInfo : git_commands .NewNullBisectInfo (),
225224 cherryPickedCommitHashSet : set .New [string ](),
226- showYouAreHereLabel : true ,
227225 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
228226 expected : formatExpected (`
229227 hash1 pick commit1
230228 hash2 pick commit2
231- hash3 ◯ <-- YOU ARE HERE --- commit3
229+ hash3 ◯ commit3
232230 hash4 ◯ commit4
233231 hash5 ◯ commit5
234232 ` ),
@@ -247,11 +245,10 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
247245 showGraph : true ,
248246 bisectInfo : git_commands .NewNullBisectInfo (),
249247 cherryPickedCommitHashSet : set .New [string ](),
250- showYouAreHereLabel : true ,
251248 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
252249 expected : formatExpected (`
253250 hash2 pick commit2
254- hash3 ◯ <-- YOU ARE HERE --- commit3
251+ hash3 ◯ commit3
255252 hash4 ◯ commit4
256253 hash5 ◯ commit5
257254 ` ),
@@ -270,7 +267,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
270267 showGraph : true ,
271268 bisectInfo : git_commands .NewNullBisectInfo (),
272269 cherryPickedCommitHashSet : set .New [string ](),
273- showYouAreHereLabel : true ,
274270 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
275271 expected : formatExpected (`
276272 hash4 ◯ commit4
@@ -291,7 +287,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
291287 showGraph : true ,
292288 bisectInfo : git_commands .NewNullBisectInfo (),
293289 cherryPickedCommitHashSet : set .New [string ](),
294- showYouAreHereLabel : true ,
295290 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
296291 expected : formatExpected (`
297292 hash1 pick commit1
@@ -312,7 +307,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
312307 showGraph : true ,
313308 bisectInfo : git_commands .NewNullBisectInfo (),
314309 cherryPickedCommitHashSet : set .New [string ](),
315- showYouAreHereLabel : true ,
316310 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
317311 expected : formatExpected (`
318312 hash5 ◯ commit5
@@ -332,33 +326,12 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
332326 showGraph : true ,
333327 bisectInfo : git_commands .NewNullBisectInfo (),
334328 cherryPickedCommitHashSet : set .New [string ](),
335- showYouAreHereLabel : true ,
336329 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
337330 expected : formatExpected (`
338331 hash1 pick commit1
339332 hash2 pick commit2
340333 ` ),
341334 },
342- {
343- testName : "don't show YOU ARE HERE label when not asked for (e.g. in branches panel)" ,
344- commits : []* models.Commit {
345- {Name : "commit1" , Hash : "hash1" , Parents : []string {"hash2" }, Action : todo .Pick },
346- {Name : "commit2" , Hash : "hash2" , Parents : []string {"hash3" }},
347- {Name : "commit3" , Hash : "hash3" , Parents : []string {"hash4" }},
348- },
349- startIdx : 0 ,
350- endIdx : 3 ,
351- showGraph : true ,
352- bisectInfo : git_commands .NewNullBisectInfo (),
353- cherryPickedCommitHashSet : set .New [string ](),
354- showYouAreHereLabel : false ,
355- now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
356- expected : formatExpected (`
357- hash1 pick commit1
358- hash2 ◯ commit2
359- hash3 ◯ commit3
360- ` ),
361- },
362335 {
363336 testName : "graph in divergence view - all commits visible" ,
364337 commits : []* models.Commit {
@@ -376,7 +349,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
376349 showGraph : true ,
377350 bisectInfo : git_commands .NewNullBisectInfo (),
378351 cherryPickedCommitHashSet : set .New [string ](),
379- showYouAreHereLabel : false ,
380352 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
381353 expected : formatExpected (`
382354 ↓ hash1r ◯ commit1
@@ -406,7 +378,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
406378 showGraph : true ,
407379 bisectInfo : git_commands .NewNullBisectInfo (),
408380 cherryPickedCommitHashSet : set .New [string ](),
409- showYouAreHereLabel : false ,
410381 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
411382 expected : formatExpected (`
412383 ↓ hash3r ◯ │ commit3
@@ -434,7 +405,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
434405 showGraph : true ,
435406 bisectInfo : git_commands .NewNullBisectInfo (),
436407 cherryPickedCommitHashSet : set .New [string ](),
437- showYouAreHereLabel : false ,
438408 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
439409 expected : formatExpected (`
440410 ↓ hash1r ◯ commit1
@@ -461,7 +431,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
461431 showGraph : true ,
462432 bisectInfo : git_commands .NewNullBisectInfo (),
463433 cherryPickedCommitHashSet : set .New [string ](),
464- showYouAreHereLabel : false ,
465434 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
466435 expected : formatExpected (`
467436 ↑ hash2l ⏣─╮ commit2
@@ -487,7 +456,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
487456 showGraph : true ,
488457 bisectInfo : git_commands .NewNullBisectInfo (),
489458 cherryPickedCommitHashSet : set .New [string ](),
490- showYouAreHereLabel : false ,
491459 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
492460 expected : formatExpected (`
493461 ↓ hash1r ◯ commit1
@@ -508,7 +476,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
508476 showGraph : true ,
509477 bisectInfo : git_commands .NewNullBisectInfo (),
510478 cherryPickedCommitHashSet : set .New [string ](),
511- showYouAreHereLabel : false ,
512479 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
513480 expected : formatExpected (`
514481 ↑ hash1l ◯ commit1
@@ -530,7 +497,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
530497 showGraph : true ,
531498 bisectInfo : git_commands .NewNullBisectInfo (),
532499 cherryPickedCommitHashSet : set .New [string ](),
533- showYouAreHereLabel : false ,
534500 now : time .Date (2020 , 1 , 1 , 0 , 0 , 0 , 0 , time .UTC ),
535501 expected : formatExpected (`
536502 ↓ hash1r ◯ commit1
@@ -596,7 +562,6 @@ func TestGetCommitListDisplayStrings(t *testing.T) {
596562 s .endIdx ,
597563 s .showGraph ,
598564 s .bisectInfo ,
599- s .showYouAreHereLabel ,
600565 )
601566
602567 renderedLines , _ := utils .RenderDisplayStrings (result , nil )
0 commit comments