projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a4f75b
)
Git2.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 7 Mar 2019 09:49:17 +0000
(17:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 7 Mar 2019 09:49:17 +0000
(17:49 +0800)
Git2.vala
patch
|
blob
|
history
diff --git
a/Git2.vala
b/Git2.vala
index
5f8e42b
..
1f5ccac
100644
(file)
--- a/
Git2.vala
+++ b/
Git2.vala
@@
-26,18
+26,15
@@
namespace GitLive {
public Repo (string path)
{
public Repo (string path)
{
- Git.Repository.open(this.repo , path);
+ Git.Repository.open(
out
this.repo , path);
}
}
-
-
-
-
-bool push(git_repository *repository)
- {
-
- git_repository* repository;
- // get the remote.
+ public void push()
+ {
+ string_array remotes;
+ this.repo.get_remote_list(out remotes);
+
+ // get the remote.
git_remote* remote = NULL;
git_remote_lookup( &remote, repository, "origin" );
git_remote* remote = NULL;
git_remote_lookup( &remote, repository, "origin" );