Help with git and Projects

18 views
Skip to first unread message

Lewis Levin

unread,
Mar 17, 2013, 5:43:40 PM3/17/13
to edi...@googlegroups.com
I have tried to setup projects with git for version control.

It doesn't appear to be working.  There isn't enough documentation (for me) to tell if I did things correctly.

I have git pointing to my bin\git.exe.  Is this right?  Should I be pointing to one of the .bat files instead?

I have the project repository set as the directory containing the project's working files.  Should a trailing slash be included or not?  (tried both, makes no apparent difference).  I also tried making the repository the .git directory but that made no difference.

Here is what I get:
- pencil icons appear on changed files in the project explorer.
- svn commands appear on the context menu
- I can commit an individual file (and it works as I can see from cmdline git and tortoise).  I cannot commit the project as a whole.
- I can see revision history for individual files, but not the project as a whole.
- I cannot diff any file. Compare to previoius version does nothing.  When I bring up the revision history and choose a revision and click the "compare to selected revision" button, I get a message: The requested file could not be retrieved from the source control system.

So, it only works very partially and really not acceptably.  Is this just the way it is or have I done something wrong--very likely--in configuring git with the projects plugin.

Thanks for your help,
Lewis

Cody

unread,
Mar 17, 2013, 7:41:01 PM3/17/13
to edi...@googlegroups.com
Hi,

On Sun, Mar 17, 2013 at 4:43 PM, Lewis Levin <lewis...@hotmail.com> wrote:
I have tried to setup projects with git for version control.

It doesn't appear to be working.  There isn't enough documentation (for me) to tell if I did things correctly.

I have git pointing to my bin\git.exe.  Is this right?  Should I be pointing to one of the .bat files instead?

Would assume git.exe.
 

I have the project repository set as the directory containing the project's working files.  Should a trailing slash be included or not?  (tried both, makes no apparent difference).  I also tried making the repository the .git directory but that made no difference.

Projects works by looking at the folders and seeing if there is a way to identify the source control. If the folder contains a .git directory it should be identified as being under control of GIT.
 

Here is what I get:
- pencil icons appear on changed files in the project explorer.
- svn commands appear on the context menu
- I can commit an individual file (and it works as I can see from cmdline git and tortoise).  I cannot commit the project as a whole.

You should be able to either select multiple files at the same time and commit them all at once (i.e. files with the pencil mark). You can also open the Source Control window under View Shelf and get a list view of all modied/added/deleted files and perform the commit from there as well.
 
- I can see revision history for individual files, but not the project as a whole.

ok
 
- I cannot diff any file. Compare to previoius version does nothing.  When I bring up the revision history and choose a revision and click the "compare to selected revision" button, I get a message: The requested file could not be retrieved from the source control system.


This would have to be debugged.
 
So, it only works very partially and really not acceptably.  Is this just the way it is or have I done something wrong--very likely--in configuring git with the projects plugin.

As replied to your previous posts on the wiki, the GIT support was never very well integrated or fully completed. The Projects plugin only really works well with SVN / CVS. Support for other systems was only partially implemented and never really completed due to lack of interest.

I unfortunately have had to make the decision to not support this plugin anymore as I don't have enough time to keep up with everything else. I am happy to apply any patches and do releases of the plugin though if they are submitted.


Cody
 

Lewis Levin

unread,
Mar 17, 2013, 8:30:02 PM3/17/13
to edi...@googlegroups.com
ok.  Sorry for the double post.  I couldn't find my way back to the wiki.  Then, it's not me.   I'll just use Tortoise.  If you allowed shell extensions to "shine through" to the context menu, then you'd have awesome support for all of the major version control systems.

Cody

unread,
Mar 18, 2013, 10:00:20 AM3/18/13
to edi...@googlegroups.com
Hi,

On Sun, Mar 17, 2013 at 7:30 PM, Lewis Levin <lewis...@hotmail.com> wrote:
ok.  Sorry for the double post.  I couldn't find my way back to the wiki.  Then, it's not me.   I'll just use Tortoise.  If you allowed shell extensions to "shine through" to the context menu, then you'd have awesome support for all of the major version control systems.


Yea would probably be best to stick with Tortoise on Windows for GIT. If you find yourself using SVN then the plugins source control functionality works quite well. Seem to remember that the command line output from the git executable was rather troublesome to parse compared to other systems, might be fairly easy thought to replace the command line dependent version with that of one of the Python GIT libraries instead to get better integrated support in the plugin.

There is some limited functionality for executing shell commands through the plugins "Execute Command" or "Execute Source Control Command" options, which open a dialog and allow you to type in a command that will be delegated to the system shell / command prompt to execute.


Cody

Reply all
Reply to author
Forward
0 new messages