Welcome Guest ( Log In | Register )

Please provide proper description when you report a post. Report button abuse will earn you an automatic warn + suspension.
 
RSS feedBump TopicReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Notepad++ Git Plugin

everling
post Mar 16 2010, 09:30 PM


Look at all my stars!!
*******
Group: Senior Member
Posts: 3,583

Joined: Feb 2008
If you have been wanting some basic level of Git integration with Notepad++, here it is!

Attached Image

I modified the Notepad++ SVN plugin, originally written by Brandon Cannaday and modified by Ronny Sherer, to get this Notepad++ Git plugin.

Notepad++ Git plugin DLL: Attached File  NPPGit.dll.zip ( 9.95k ) Number of downloads: 6478

Source code: Attached File  NPPGit.source.zip ( 27.99k ) Number of downloads: 743

Compiler: Microsoft Visual C++ 2008 Express Edition

I'll just quote some bits of his page as they are still relevant. Just modify the TortoiseSVN references to TortoiseGit. blush.gif
QUOTE(Brandon Cannaday)
The plugin simply uses the command line features of TortoiseSVN, so you'll have to install it before the plugin will work.

[...]

Installation Instructions

Make sure TortoiseSVN is installed and you've installed the latest version of Notepad++.

The plugin comes in the form of a zipped, dll. Simply unzip the dll and place it in the Notepad++ plugins directory. For a typical install, it will be located here: "C:\Program Files\Notepad++\plugins". Next time you launch Notepad++, the plugin will automatically be loaded.

The plugin should work under Windows XP, Vista, and 7. Both 32 bit and 64 bit operating systems are supported. If you find any bugs on these systems or others, drop a comment and I'll see if I can address them.

I've noticed that sometimes Notepad++'s auto-updater thinks the plugin needs to be updated. This usually results in a new version being overwritten by version 1.0. If you update to 1.1 or 1.2, do not use Notepad++'s auto-update feature when it prompts you for this plugin.

Source: Notepad++ Subversion Plugin

And here is the comment that I used for as the basis for mine.
QUOTE(Ronny Sherer @ May 16 2009, 12:01am)
Added "add" and "diff" functionalities.

I also made the code more general and easy to change.

DLL can be downloaded here: http://www.shererim.com/downloads/NPPSvn.zip
Sources here: http://www.shererim.com/downloads/NPPSvn-source.zip
Source: Comment

This post has been edited by everling: Mar 18 2010, 02:48 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
eclectice
post Mar 17 2010, 06:11 PM


Look at all my stars!!
*******
Group: Senior Member
Posts: 2,284

Joined: Mar 2008
QUOTE(everling @ Mar 16 2010, 09:30 PM)
If you have been wanting some basic level of Git integration with Notepad++, here it is!

Attached Image

I modified the Notepad++ SVN plugin, originally written by Brandon Cannaday and modified by Ronny Sherer, to get this Notepad++ Git plugin.

Notepad++ Git plugin DLL: Attached File  NPPGit.dll.zip ( 9.95k ) Number of downloads: 6478

Source code: Attached File  NPPGit.source.zip ( 27.99k ) Number of downloads: 743

Compiler: Microsoft Visual C++ 2008 Express Edition

I'll just quote some bits of his page as they are still relevant. Just modify the TortoiseSVN references to TortoiseGit. blush.gif

Source: Notepad++ Subversion Plugin

And here is the comment that I used for as the basis for mine.

Source: Comment
*
Good job on the Git plugin. But, since I don't use Notepad++ and GIT, I cannot comment or give review of it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Find The Way
post Mar 17 2010, 11:54 PM


On my way
****
Group: Senior Member
Posts: 577

Joined: Nov 2004


Though I'm not a git user, honestly I feel excited to see more and more Malaysian involve in this kind of work. I also want to gambateh le. smile.gif

This post has been edited by Find The Way: Mar 17 2010, 11:54 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
everling
post Mar 18 2010, 07:21 AM


Look at all my stars!!
*******
Group: Senior Member
Posts: 3,583

Joined: Feb 2008
Thanks for the support guys. smile.gif

Unfortunately I've come across a minor bug with it. When committing changes, it seems to be secretly adding some other files that are also under version control but had its last modified time changed.

I suppose it is a good thing that nobody else has downloaded it. biggrin.gif



Edit: On second thought, it appears to be an issue with TortoiseGit and not my plugin.

This post has been edited by everling: Mar 18 2010, 07:41 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
everling
post Mar 18 2010, 02:52 PM


Look at all my stars!!
*******
Group: Senior Member
Posts: 3,583

Joined: Feb 2008
Well, that turned out to be a misunderstanding, somewhere. The bug was bogus as the logs showed up fine. Maybe I shouldn't be working on things so early in the morning. doh.gif

This post has been edited by everling: Mar 18 2010, 02:54 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
dstl1128
post Mar 19 2010, 08:27 AM


Look at all my stars!!
*******
Group: Senior Member
Posts: 4,217

Joined: Jan 2003
That's nice of you. Good stuff wink.gif.


Does Notepad++ support 3-way diff/merge view? Haven't use Notepad++ aggressively.


p/s: I still prefer separate tools - cmd line git & gvim. tongue.gif

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
everling
post Mar 19 2010, 11:53 AM


Look at all my stars!!
*******
Group: Senior Member
Posts: 3,583

Joined: Feb 2008
You're welcome. smile.gif

You mean diff with 3 files at the same time or merging two files into a third? Afaik, Notepad++ only diffs two files. The option is available in the "Plugins > Compare" (visible in the screenshot) and supports diffing two opened files or with SVN. It is rather primitive when compared to TortoiseMerge.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
cleave
post Mar 19 2010, 12:06 PM


Custom Title goes here...
****
Group: Senior Member
Posts: 673

Joined: Nov 2007


Excellent job, everling. thumbup.gif
I dont normally interface with Git but I've downloaded your plugin and will try it out nevertheless, if I have the chance or excuse. unsure.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ianemv
post May 19 2011, 02:37 PM


New Member
*
Group: New Member
Posts: 1

Joined: May 2011
Download link of Tortoise please smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Bump TopicReply to this topicTopic OptionsStart new topic
 

Switch to:
| Lo-Fi Version
0.0634sec    1.17    6 queries    GZIP Disabled
Time is now: 19th April 2014 - 03:00 PM