jenndhemus / editra-plugins

Automatically exported from code.google.com/p/editra-plugins
0 stars 0 forks source link

[projects] Git shows unversioned directories as versioned #91

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In a project directory that is using GIT
2. Right click + New Folder
3. Right click on the new folder and select new folder

What is the expected output? What do you see instead?
The first new folder is correctly shown as not under version control but
the sub folder of it and any further sub folders are shown as 'uptodate'

Please use labels and text to provide additional information.

Original issue reported on code.google.com by CodyPrec...@gmail.com on 4 Feb 2009 at 1:58

GoogleCodeExporter commented 8 years ago
I use git regularly and can duplicate this problem.  I'm working on a fix for 
this...

Original comment by rob.mcmu...@gmail.com on 24 Mar 2009 at 2:25

GoogleCodeExporter commented 8 years ago
Fixed this.  It turns out that some untracked objects don't show up in 
"git-ls-files
--others", so untracked files also have to be parsed out of the "git-status ."
output.  I also broke up untrackedFiles into two methods, where I split the 
parsing
into a new method parseOutputForUntrackedFiles so I could call that method from 
the
status() method.

Original comment by rob.mcmu...@gmail.com on 24 Mar 2009 at 4:10

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks Rob,

Applied with some small modifications. (It didn't properly handle filenames with
spaces in them.)

There is still one more bug with checking if a directory is controlled or not 
when
right clicking that I didn't have the time to look into completely. So I left a 
TODO
inside of parseOutputForUntrackedFiles. Basically it needs to check for './' and
'../' paths in the output.

So leaving this open till that TODO is handled.

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 24 Mar 2009 at 11:57

GoogleCodeExporter commented 8 years ago
Here's a quick fix for your fix that fixed the spaces in filenames.  This one 
fixes
problems that happen if the # character appears in a filename.

Original comment by rob.mcmu...@gmail.com on 26 Mar 2009 at 10:23

Attachments:

GoogleCodeExporter commented 8 years ago
Hello,

Applied. I also tried to fix the other issue as well. I made it better but it is
still somewhat broken for the right click menu. Once the headache set in I just
decided to add a fix in the UI for it, but would still be good to get fixed in 
the
GIT module.

One would think that GIT would have a better command line interface than it 
does. its
output is far more difficult to work with than any other source control system 
that I
have worked with. Maybe there are some other commands that produce cleaner 
output?

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 27 Mar 2009 at 12:20