Skip to content

Commit 6237137

Browse files
committed
Comments/Cleanup
1 parent 7330947 commit 6237137

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

rs/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ fn remove_temporary_files(changes: &mut HashMap<String, Vec<EventKind>>) -> Vec<
153153
let paths: Vec<String> = changes
154154
.iter()
155155
.filter_map(|(key, value)| {
156+
// TODO If a file was removed and then created, then it shouldn't be marked as temporary file
156157
let is_created = value.iter().any(|v| matches!(v, EventKind::Create(_)));
157158
let is_removed = value.iter().any(|v| matches!(v, EventKind::Remove(_)));
158159

src/main/kotlin/com/jetpackduba/gitnuro/git/graph/GraphCommitList.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ class GraphCommitList(
5757

5858
if (
5959
stashChild == null ||
60-
(
61-
stashChild.parentCount > 0 &&
62-
stashChild.parents[0] == c
63-
)
60+
stashChild.parents.firstOrNull() == c
6461
) {
6562
this.enter(this.size, c)
6663
this.add(c)

src/main/kotlin/com/jetpackduba/gitnuro/ui/context_menu/ContextMenu.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ private fun Modifier.contextMenu(enabled: Boolean, items: () -> List<ContextMenu
8888
val event = awaitEventFirstDown()
8989

9090
if (enabled && event.buttons.isSecondaryPressed) {
91-
println("Secondary is pressed")
9291
val currentCheck = System.currentTimeMillis()
9392

9493
if (lastCheck != 0L && currentCheck - lastCheck < MIN_TIME_BETWEEN_POPUPS_IN_MS) {

0 commit comments

Comments
 (0)