From 83cebbe79087cf7cf30a520d82158e141e3fda72 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 10 May 2014 21:54:19 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index 3465ed89..0f6a3f0f 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -57,7 +57,7 @@ public class GitRepo : Object * * @argument {Array} files the files to add. */ - public string add ( Array files ) + public string add ( Array files ) throws Error, SpawnError { // should really find out if these are untracked files each.. // we run multiple versions to make sure that if one failes, it does not ignore the whole lot.. @@ -82,7 +82,7 @@ public class GitRepo : Object * * @argument {Array} files the files to add. */ - public string remove ( Array files ) + public string remove ( Array files ) throws Error, SpawnError { // this may fail if files do not exist.. // should really find out if these are untracked files each.. @@ -118,7 +118,7 @@ public class GitRepo : Object * */ - public string commit ( string message, Array files ) + public string commit ( string message, Array files ) throws Error, SpawnError { @@ -157,7 +157,7 @@ public class GitRepo : Object * -- maybe later it will have a few options and do more stuff.. * */ - public string pull () + public string pull () throws Error, SpawnError { // should probably hand error conditions better... string[] cmd = { "pull" }; @@ -174,7 +174,7 @@ public class GitRepo : Object * -- maybe later it will have a few options and do more stuff.. * */ - public string push () + public string push () throws Error, SpawnError { // should return this.git({ "push" }); -- 2.39.2