Commit Graph

819 Commits

Author SHA1 Message Date
Carlos Martín Nieto f7781c0e00 Merge pull request #179 from schani/master
Additions
2015-04-27 23:29:49 +02:00
Carlos Martín Nieto 9538c7f750 Merge pull request #197 from pks-t/test-cleanups
tests: always clean up temporary repository dirs
2015-04-24 16:47:42 +02:00
Patrick Steinhardt e300945a3d tests: always clean up temporary repository dirs
Some test repositories are not correctly removed after the tests
did run. Fix by introducing a function that is to be used for
cleaning up temporary test repositories.
2015-04-24 13:01:51 +02:00
Carlos Martín Nieto 1011b03e41 Merge pull request #195 from shurcooL/next-ignore-script
Avoid installing script binary to user's $GOPATH/bin.
2015-04-21 12:32:35 +02:00
Carlos Martín Nieto b374e16db8 Update to libgit2 4c02d3937 2015-04-18 04:50:39 +02:00
Dmitri Shuralyov acc05926f7 Avoid installing script binary to user's $GOPATH/bin. 2015-04-16 18:45:53 -07:00
Carlos Martín Nieto e021457f27 Merge pull request #180 from arcamael/master
Add possibiliy of checkout on specific path
2015-04-03 14:45:38 +02:00
Carlos Martín Nieto 1ba7e13a3a Merge pull request #191 from kron4eg/patch-1
Test on travis using Go1.4
2015-04-03 14:43:11 +02:00
Artiom Di 6454808f69 Test on travis using Go1.4 too 2015-04-03 14:53:15 +03:00
Mark Probst b3e7304abf Add a FIXME. 2015-03-23 12:02:17 -07:00
Mark Probst 524cc7967b Add DiffIndexToWorkdir 2015-03-23 12:02:17 -07:00
Mark Probst 8622831b11 Add DiffTreeToWorkdirWithIndex 2015-03-23 12:02:17 -07:00
Mark Probst 43102043fb Add Commit.Amend 2015-03-23 12:02:16 -07:00
Carlos Martín Nieto a4d5118374 Merge pull request #185 from griffindy/dg-add-reset
Add support for libgit2's git_reset.
2015-03-22 07:25:28 +01:00
Dylan Griffin 89d67328f3 Add support for libgit2's git_reset.
Adds a new method to *Repository called ResetToCommit as well as constants for
the three reset modes that libgit2 currently supports. This does not need to be
limited to Commit, we actually just need something with a gitObject, which blobs
and other Objects have, they will just require different methods. I only need
to be able to reset to commits, so that's all I'm implementing right now.

Also adds a test which updates the test repository README twice and then resets
to the first commit.
2015-03-21 18:37:00 -04:00
Geoffrey Ragot c4b8861b34 Add possibiliy of checkout on specific path 2015-03-15 10:14:29 +01:00
Carlos Martín Nieto c4fce1a218 Update to libgit2 d675982a153
There's been some changes to the checkout strategy, especially the
SAFE_CREATE mode, which is now the RECREATE_MISSING flag, though that
shouldn't be necessary to use in the general case.

The largest changes come from the removal of the signture from
ref-modifying functions/methods and the removal of the reflog string in
all but those directly related to moving references.
2015-03-15 01:49:32 +01:00
Carlos Martín Nieto a2878cf7b2 Merge branch 'v22' 2015-03-15 01:22:58 +01:00
Carlos Martín Nieto 1b44c0a234 Add a bit more on next vs master 2015-03-15 01:21:21 +01:00
Carlos Martín Nieto 050e6fbc49 Correct README on what master tracks
The second mention still said that master tracks master. Add a mention
of next which will become the branch to track upstream tip.
2015-03-15 01:19:32 +01:00
Carlos Martín Nieto 137c4fc3c8 Merge branch 'master' into v22 2015-03-15 01:09:11 +01:00
Carlos Martín Nieto 063bed33a9 Add a call to ldconfig in the travis script
This should help it find the library we just installed.
2015-03-15 01:03:06 +01:00
Carlos Martín Nieto 81d5cc0157 Make travis script install to /usr/local
This is the correct place for software not installed by the system's
package manager.
2015-03-15 00:53:02 +01:00
Carlos Martín Nieto 76d600f7b3 Correct README on what master tracks
The second mention still said that master tracks master. Add a mention
of next which will become the branch to track upstream tip.
2015-03-15 00:46:15 +01:00
Carlos Martín Nieto d300110b85 Merge pull request #178 from schani/master
Fixes and improvements
2015-03-11 17:05:16 +01:00
Mark Probst 9eae50f29a Add commit summary getter 2015-03-04 15:53:00 -08:00
Mark Probst 45d88ca5f4 go fmt 2015-03-04 15:52:59 -08:00
Mark Probst e439b931a6 Default signature 2015-03-04 15:52:57 -08:00
Mark Probst db5fa66b48 State cleanup 2015-03-04 15:52:55 -08:00
Mark Probst c78b4d665e Cherrypick 2015-03-04 15:52:54 -08:00
Mark Probst 56ed0b22d7 Repository state 2015-03-04 15:52:52 -08:00
Mark Probst eec61815fb Fix typos in constants 2015-03-04 15:52:50 -08:00
David Calavera 755721e684 Add BranchIterator#ForEach.
This abstracts the branch iteration from the user.
2015-02-19 11:44:56 +01:00
Matthew Donoughe 675b9b0df9 use v22 travis results 2015-02-13 22:13:57 -05:00
Matthew Donoughe 8bb707b827 return to correct directory for main build 2015-02-13 22:07:54 -05:00
Matthew Donoughe 0d3cc8be8a sudo make install? 2015-02-13 22:00:41 -05:00
Matthew Donoughe 5be2387aeb install libgit2 on travis ci 2015-02-13 21:43:16 -05:00
Matthew Donoughe 43f6a75066 remove static git support files 2015-02-13 21:43:16 -05:00
Matthew Donoughe 51e7cf0ad4 use git_signature_free 2015-02-13 20:44:29 -05:00
Carlos Martín Nieto 94b1f7d07d Merge pull request #173 from AaronO/add/graph-methods
Add bindings for git_graph_* methods
2015-02-13 08:45:14 +01:00
Aaron O'Mullan dddcbb71c4 Remove "Graph" prefix on method names 2015-02-12 18:49:54 +01:00
Aaron O'Mullan c10445cd67 Add bindings for git_graph_* methods
Add graph.go
2015-02-11 12:55:16 +01:00
Carlos Martín Nieto ce8bcbf966 Merge pull request #172 from motemen/fix-test-patch-prefix
Fix test to force diff prefixes.
2015-01-30 14:50:37 +01:00
motemen 3e05c10385 Fix test to force diff prefixes. 2015-01-30 13:44:29 +09:00
Carlos Martín Nieto 2bcbe6bd2d Merge commit '92a1f92d912cdb5f68da8c1e5e3a4d1ebfd282db' 2015-01-29 15:17:54 +01:00
joseferminj 92a1f92d91 Add TargetDirectory field to Checkout options.
TargetDirectory field indicates a alternative checkout path to workdir.
2015-01-29 15:17:46 +01:00
Carlos Martín Nieto 2b17dffc07 Merge pull request #171 from pks-t/submodule-foreach-fix
Submodule foreach fix
2015-01-29 15:15:28 +01:00
Patrick Steinhardt 2e481dbc79 Fix ForeachSubmodule panicing.
As the SubmoduleVisitor function is called from inside libgit2 we
cannot use Go types in its signature. Fix by using C types
instead.
2015-01-28 15:07:32 +01:00
Patrick Steinhardt 1107c6824f Add test triggering ForeachSubmodule panic. 2015-01-28 15:07:27 +01:00
Carlos Martín Nieto 4a17f8038d Merge pull request #169 from tarrant/master
Add Go functions for git_config_find_* functions
2015-01-15 11:13:21 +01:00