SF.net SVN: geany-plugins:[442] trunk/geanyvc/vc_git.c

yurand at users.sourceforge.net yurand at xxxxx
Thu Feb 5 17:11:08 UTC 2009


Revision: 442
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=442&view=rev
Author:   yurand
Date:     2009-02-05 17:11:08 +0000 (Thu, 05 Feb 2009)

Log Message:
-----------
GeanyVC: Implemented revert dir/basedir for git

Modified Paths:
--------------
    trunk/geanyvc/vc_git.c

Modified: trunk/geanyvc/vc_git.c
===================================================================
--- trunk/geanyvc/vc_git.c	2009-02-05 17:00:43 UTC (rev 441)
+++ trunk/geanyvc/vc_git.c	2009-02-05 17:11:08 UTC (rev 442)
@@ -89,7 +89,9 @@
 static const gchar *GIT_CMD_DIFF_FILE[] = { "git", "diff", "HEAD", "--", BASENAME, NULL };
 static const gchar *GIT_CMD_DIFF_DIR[] = { "git", "diff", "HEAD", NULL };
 static const gchar *GIT_CMD_REVERT_FILE[] = { "git", "checkout", "--", BASENAME, NULL };
-static const gchar *GIT_CMD_REVERT_DIR[] = { "git", NULL };
+static const gchar *GIT_CMD_REVERT_DIR[] = { "git", "reset", "--", BASE_DIRNAME,
+	CMD_SEPARATOR, "git", "checkout", "HEAD", "--", BASE_DIRNAME, NULL
+};
 static const gchar *GIT_CMD_STATUS[] = { "git", "status", NULL };
 static const gchar *GIT_CMD_ADD[] = { "git", "add", "--", BASENAME, NULL };
 static const gchar *GIT_CMD_REMOVE[] =
@@ -130,7 +132,7 @@
 	 .env = GIT_ENV_REVERT_FILE,
 	 .function = NULL},
 	{
-	 .startdir = VC_COMMAND_STARTDIR_FILE,
+	 .startdir = VC_COMMAND_STARTDIR_BASE,
 	 .command = GIT_CMD_REVERT_DIR,
 	 .env = GIT_ENV_REVERT_DIR,
 	 .function = NULL},


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list