8000 Shows changed file as new in diff after permissions update · Issue #20 · Piturnah/gex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Shows changed file as new in diff after permissions update #20
Open
@Piturnah

Description

@Piturnah

Describe the bug

I checked out DCoxshall/dylstatus@b317670 and made a change resulting in the following diff to main.py:

diff --git a/main.py b/main.py
old mode 100644
new mode 100755
index b597543..ed2fbc3
--- a/main.py
+++ b/main.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
 import time
 from io import StringIO
 import sys

$ gex correctly lists the file under "Unstaged changes":

image

However, instead of listing the correct diff, when expanded it treats the file as though it was a new file. This is almost certainly a bug in src/parse.rs.

let diff: IResult<&str, &str> = tag("+++ b/")(diff.get(2).unwrap_or(&""));

Additional context

$ gex --version
gex 0.3.7-dev (fcd6818e126b3c76df319cff8e6f05aa833a159f)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0