Commit Graph

368 Commits

Author SHA1 Message Date
Carlos Martín Nieto 1796304374 Merge pull request #135 from joseferminj/diff-tree-workdir
Expose DiffTreeToWorkdir function
2014-11-17 14:42:00 +01:00
joseferminj 1ba38905d1 Expose DiffTreeToWorkdir function 2014-11-13 23:06:45 -05:00
Carlos Martín Nieto 61729f5c93 Merge pull request #134 from joseferminj/fix-merge-trees-nil-ancestor
Fix MergeTrees func to accept nil as ancestor parameter
2014-11-09 20:34:56 +01:00
joseferminj ff65faa082 Fix MergeTrees func to accept nil as ancestor parameter 2014-11-08 19:07:21 -05:00
Carlos Martín Nieto 98299e65fb README: add -d flag to 'go get'
To make sure it doesn't try to build it.
2014-10-31 23:20:57 +01:00
Carlos Martín Nieto 58f6de09f4 Merge pull request #132 from apsdehal/master
Updates README.md to include GoDoc badge.
2014-10-30 23:39:01 +01:00
Amanpreet Singh fd312d354f Updates README.md to include GoDoc badge. 2014-10-28 23:10:35 +05:30
Carlos Martín Nieto ccfce74e18 Merge pull request #129 from libgit2/cmn/const-type
Make the constants have types
2014-10-28 11:59:04 +01:00
Carlos Martín Nieto 668aa5dae1 Make the constants have types
While Go will assign the correct type to a const block when it
auto-creates the values, assigning makes the const be typeless and will
only gain it in each particular use.

Make each constant in the blocks have an assigned type.
2014-10-28 11:29:31 +01:00
Carlos Martín Nieto 9c6db70fc2 Merge pull request #127 from calavera/ls_remote
Add Remote#Ls.
2014-10-27 17:42:28 +01:00
David Calavera d722c11f7f Hide C.git_direction type. 2014-10-27 09:08:05 -07:00
David Calavera e969b33b33 Make filtering logic more simple. 2014-10-27 08:32:50 -07:00
David Calavera d1b87efd96 Add connect methods to Remote. 2014-10-27 08:29:42 -07:00
David Calavera 749d6149b3 Merge branch 'master' into ls_remote
* master:
  Update libgit2 submodule.
  Remove Config#Refresh
  implemented Index.AddAll, Index.RemoveAll, Index.UpdateAll
2014-10-27 07:25:57 -07:00
Carlos Martín Nieto 99d10775d6 Merge pull request #125 from lucas-clemente/master
implemented Index.AddAll as git_index_add_all wrapper
2014-10-25 18:11:52 +02:00
Carlos Martín Nieto a2fd47aad2 Merge pull request #128 from calavera/remote_git_config_refresh_call
Remove Config#Refresh
2014-10-25 18:07:33 +02:00
David Calavera ea54434f90 Update libgit2 submodule. 2014-10-25 06:59:40 -07:00
David Calavera f6fa1a38ab Add Remote#Ls.
Allow filtering heads by name.
2014-10-24 17:28:10 -07:00
David Calavera 5c72fe54b8 Remove Config#Refresh
Because it has been removed from libgit2:
55cb499972
2014-10-24 17:22:46 -07:00
Lucas Clemente 9d37f81764 implemented Index.AddAll, Index.RemoveAll, Index.UpdateAll 2014-10-24 21:55:08 +02:00
Carlos Martín Nieto 41008af54c Merge pull request #123 from ry/master
Use Filemode type in TreeEntry and IndexEntry
2014-10-23 19:17:23 +02:00
Carlos Martín Nieto 0af2a39b4e Update to latest master 2014-10-23 18:51:51 +02:00
Ryan Dahl 5539137e9a Use Filemode type in TreeEntry and IndexEntry
Fixes #121
2014-10-20 11:58:55 -04:00
Carlos Martín Nieto 3b7cc1e97e remote: use the library's certificate validity if no callback is set
We should not return 0, as in this case that means we let it through,
return an appropriate error instead.
2014-10-19 14:38:00 +02:00
Carlos Martín Nieto 68bd3bbdd7 Fix header name
It turns out that some systems have a strings.h which includes string.h,
which does not happen on GNU systems.
2014-10-15 17:10:35 +02:00
Carlos Martín Nieto c77c8f6fb9 Add a test for blobs
This has been in my worktree unadded for a while.
2014-10-15 16:59:19 +02:00
Carlos Martín Nieto d9dfc4bce8 Add support for hostkey certificates
While they're not exactly certificates, they belong in the same
category.
2014-10-15 16:57:32 +02:00
Carlos Martín Nieto a81abd10ca Merge branch 'fetchhead'
Conflicts:
	remote.go
2014-10-15 15:59:08 +02:00
Jess Sheneberger d917a13aca add plumbing for update fetch head on remotes 2014-10-15 15:58:33 +02:00
Carlos Martín Nieto 17a9214307 Update to libgit2 master
The option to ignore the server's certificate has been removed, replaced
witha  callback for the user to perform their own checking.

Remote.Fetch() now performs opportunistic updates and takes a list of
refspecs to use as the active set for a particular fetch.
2014-10-15 15:56:59 +02:00
Carlos Martín Nieto 5eda8d6935 Merge pull request #109 from roguePanda/git_status
Address issue #108
2014-09-11 09:16:39 +02:00
Carlos Martín Nieto c68241c3f0 Merge pull request #117 from piger/dev
add Index#RemoveByPath.
2014-09-09 10:51:44 +02:00
Daniel Kertesz c2f6381252 add Index#RemoveByPath. 2014-09-07 12:45:52 +02:00
Carlos Martín Nieto 756c8a7e8b Merge pull request #116 from calavera/sync_with_libgit2_master
Sync with libgit2 master.
2014-09-04 17:10:37 +02:00
David Calavera ced242954c Update vendored libgit2 version to master. 2014-09-04 07:57:10 -07:00
Ben Navetta d4734a41d5 remove unused status version field 2014-09-04 10:17:31 -04:00
Ben Navetta 1520978dcd give status option flags their own type 2014-09-04 10:15:13 -04:00
Carlos Martín Nieto db113288b3 Merge pull request #113 from CMGS/master
enhance checkout, add CheckoutTree method
2014-09-04 16:02:21 +02:00
Carlos Martín Nieto cea203d01c Merge pull request #115 from surma-dump/feature/empty_refname
Repository.CreateCommit: Allow empty refname for non-update commit
2014-09-04 14:38:36 +02:00
Alexander Surma d196da40ed Repository.CreateCommit: Only allocate CStr on non-empty refname 2014-09-04 09:57:54 +02:00
David Calavera 9bec36a0b0 Update clone options to be in sync with libgit2 master.
Remove missing constants.
2014-09-03 18:08:48 -07:00
Alexander Surma fe452620c6 Repository.CreateCommit: Allow empty refname for non-update commit 2014-09-01 19:27:44 +02:00
CMGS 2f93ce39cc embrace static types 2014-08-28 15:40:21 +08:00
CMGS e5e9636ce0 enhance checkout, add CheckoutTree method 2014-08-27 17:03:21 +08:00
Carlos Martín Nieto 84597241e0 Exit when pkg-config isn't found
We run pkg-config in a subshell, so our 'set -e' does not take effect
there. Explicitly error out if there was an error running pkg-config.
2014-08-26 23:32:27 +02:00
Carlos Martín Nieto 0f79d63fd5 Merge calvera/rev-parse 2014-08-26 12:35:17 +02:00
Carlos Martín Nieto 0d58580249 Remove unnecessary heap allocation 2014-08-26 12:35:05 +02:00
Ben Navetta 80997c6fa5 fix status list to handle null head_to_index in entries 2014-08-25 23:18:00 -04:00
Ben Navetta 0059b26255 add thread locking to status api 2014-08-25 18:20:54 -04:00
Ben Navetta 33ae83f4d9 remove status_foreach binding 2014-08-25 18:15:36 -04:00