Edward Thomson
a6ed1fcbe1
Merge pull request #2593 from libgit2/cmn/remote-delete-name
...
remote: accept a repository and remote name for deletion
2014-10-10 12:21:28 -04:00
Carlos Martín Nieto
942a7b39ed
Fix test build
...
Some PRs have fallen out of sync with the changes in signatures, so we
need to take a few extra parameters into account.
2014-10-10 18:03:09 +02:00
Carlos Martín Nieto
2139c9b76c
Merge pull request #2542 from linquize/fetch-head
...
Do not error out when fetching from second remote
2014-10-10 17:50:28 +02:00
Carlos Martín Nieto
0625638f06
Merge pull request #2499 from csware/hard-reset-checkout-callbacks
...
Allow to propagate checkout callbacks to git HARD reset
2014-10-10 17:40:53 +02:00
Edward Thomson
f54d8d528a
Merge pull request #2574 from csware/hostname-for-certificate_check_cb
...
Provide host name to certificate_check_cb
2014-10-10 11:28:58 -04:00
Edward Thomson
533da4ea00
Merge pull request #2473 from arthurschreiber/arthur/new-javascript-test-files
...
New test files for the javascript diff driver.
2014-10-10 10:03:06 -04:00
Carlos Martín Nieto
46a2b8e855
Merge pull request #2592 from libgit2/cmn/describe
...
Implement git-describe
2014-10-09 22:24:40 +02:00
Arthur Schreiber
994a3006b6
Update the javascript diff driver's function pattern.
2014-10-09 22:21:34 +02:00
Arthur Schreiber
19fa9c0ca0
New test files for the javascript diff driver.
2014-10-09 22:14:55 +02:00
Edward Thomson
dfff1b5bcb
Merge pull request #2599 from linquize/config-trailing-spaces
...
config: Handle multiple spaces that follow a configuration value and precede a comment char
2014-10-09 12:16:17 -04:00
Sven Strickroth
db3d169c33
Add tests for host names
...
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2014-10-09 17:32:38 +02:00
Edward Thomson
8371457ce2
Merge pull request #2597 from ethomson/fixup
...
Trivial fixups
2014-10-09 11:32:26 -04:00
Edward Thomson
10cf4b26a0
Merge pull request #2448 from libgit2/cmn/reference-transaction
...
Introduce reference transactions
2014-10-09 10:49:37 -04:00
Edward Thomson
8be28acfcd
Merge pull request #2462 from libgit2/cmn/remote-fetch-refs
...
Implement opportunistic ref updates
2014-10-09 10:41:38 -04:00
Carlos Martín Nieto
c327d5db8b
transaction: rename lock() to lock_ref()
...
This leaves space for future expansion to locking other resources
without having to change the API for references.
2014-10-09 16:29:30 +02:00
Arthur Schreiber
eca07bcd83
Add git_merge_bases_many.
2014-10-09 14:19:00 +02:00
Linquize
a447a7e40b
config: Add test cases that have trailing spaces before comment chars
2014-10-04 23:28:40 +08:00
Edward Thomson
ca7cd1734d
p_mkdir != mkdir on win32
2014-10-03 19:30:48 -04:00
Vicent Marti
737b505116
hashsig: Export as a sys
header
2014-10-01 12:03:24 +02:00
Carlos Martín Nieto
262eec23fe
remote: accept a repository and remote name for deletion
...
We don't need the remote loaded, and the function extracted both of
these from the git_remote in order to do its work, so let's remote a
step and not ask for the loaded remote at all.
This fixes #2390 .
2014-09-30 16:09:55 +02:00
Carlos Martín Nieto
ab8d9242f5
Introduce reference transactions
...
A transaction allows you to lock multiple references and set up changes
for them before applying the changes all at once (or as close as the
backend supports).
This can be used for replication purposes, or for making sure some
operations run when the reference is locked and thus cannot be changed.
2014-09-30 15:44:32 +02:00
Carlos Martín Nieto
c5837cad85
remote: implement opportunistic remote-tracking branch updates
...
When a list of refspecs is passed to fetch (what git would consider
refspec passed on the command-line), we not only need to perform the
updates described in that refspec, but also update the remote-tracking
branch of the fetched remote heads according to the remote's configured
refspecs.
These "fetches" are not however to be written to FETCH_HEAD as they
would be duplicate data, and it's not what the user asked for.
2014-09-30 15:43:24 +02:00
Carlos Martín Nieto
9c206a2248
remote: use active refspec override in the tests
...
This lets us test this bit as well as getting closer to what they were
trying to do.
2014-09-30 15:42:32 +02:00
Carlos Martín Nieto
3f89420523
remote: allow overriding the refspecs for download and fetch
...
With opportunistic ref updates, git has introduced the concept of having
base refspecs *and* refspecs that are active for a particular fetch.
Let's start by letting the user override the refspecs for download.
2014-09-30 15:42:32 +02:00
Carlos Martín Nieto
25345c0cbe
describe: rename git_describe_opts to git_describe_options
...
And implement the option init functions for this and the format options.
2014-09-30 09:18:22 +02:00
Carlos Martín Nieto
5431c46a96
describe: use globs in the tests
...
This makes us be closer to git's tests, and lets us better describe what
we expect from the output.
2014-09-30 09:05:55 +02:00
Carlos Martín Nieto
fd8126e4c6
describe: implement describing the workdir
...
When we describe the workdir, we perform a describe on HEAD and then
check to see if the worktree is dirty. If it is and we have a suffix
string, we append that to the buffer.
2014-09-30 08:56:20 +02:00
Carlos Martín Nieto
3b6534b807
describe: split into gather and format steps
...
Instead of printing out to the buffer inside the information-gathering
phase, write the data to a intermediate result structure.
This allows us to split the options into gathering options and
formatting options, simplifying the gathering code.
2014-09-30 07:24:28 +02:00
Carlos Martín Nieto
1f501a086b
describe: rename _object() to _commit()
...
We don't describe arbitrary object, so let's give it the name of the one
object type we accept.
2014-09-30 04:58:02 +02:00
Carlos Martín Nieto
af6cc38fc0
Merge remote-tracking branch 'upstream/master' into cmn/describe
2014-09-30 04:38:05 +02:00
Edward Thomson
4c53489260
Merge pull request #2581 from jacquesg/stash-ignored-directories
...
Stash ignored directories
2014-09-29 14:57:54 -04:00
Edward Thomson
89602a1a23
Merge pull request #2584 from jacquesg/pool-alignment
...
Pool/Index data is not aligned
2014-09-29 10:39:40 -04:00
Edward Thomson
ced843f417
Merge pull request #2559 from libgit2/cmn/free-tls-error
...
global: free the error message when exiting a thread
2014-09-29 10:29:00 -04:00
Jacques Germishuys
0478b7f472
Silence unused return value warning
2014-09-26 12:12:09 +02:00
Jakub Čajka
7629ea5d8d
Fixed odb foreach test failure for big-endian 64-bit
2014-09-26 12:12:08 +02:00
Jakub Čajka
d99e547173
Fixed merge REUC test for big-endian 64-bit
2014-09-26 12:12:08 +02:00
Jacques Germishuys
940da54861
Added test for stashing files in ignored directories
2014-09-24 13:24:06 +02:00
Sven Strickroth
e6e834a129
Provide host name to certificate_check_cb
...
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2014-09-22 16:27:52 +02:00
Vicent Marti
14556cbff7
Merge pull request #2567 from cirosantilli/factor-41
...
Factor 40 and 41 constants from source.
2014-09-17 17:13:25 +02:00
Vicent Marti
276d9ea3a6
Merge pull request #2571 from libgit2/vmg/walk-up-path
...
Fix `git_path_walk_up` to work with non-rooted paths
2014-09-17 15:39:57 +02:00
Vicent Marti
4592b62ee5
Merge pull request #2572 from cirosantilli/factor-void
...
Replace void casts with GIT_UNUSED.
2014-09-17 15:26:48 +02:00
Ciro Santilli
c5cf8cade3
Replace void casts with GIT_UNUSED.
2014-09-17 15:19:08 +02:00
The rugged tests are fragile
4cb7c4a4c7
attr: Add an extra test for files under a subfolder
2014-09-17 15:08:16 +02:00
The rugged tests are fragile
bbb988a519
path: Fix git_path_walk_up
to work with non-rooted paths
2014-09-17 15:00:12 +02:00
Vicent Marti
1312f87b68
Merge pull request #2464 from libgit2/cmn/host-cert-info
...
Provide a callback for certificate validation
2014-09-17 14:56:39 +02:00
Carlos Martín Nieto
25abbc27a7
Clean up some leaks in the test suite
2014-09-17 03:19:40 +02:00
Carlos Martín Nieto
52e09724fd
ssh: skip the localhost cert check earlier
...
Skip it before we attempt to clone, as we would exit with -1 on systems
which do not have sshd running.
2014-09-16 17:13:58 +02:00
Carlos Martín Nieto
1e0aa105fa
ssh: expose both hashes
...
The user may have the data hashed as MD5 or SHA-1, so we should provide
both types for consumption.
2014-09-16 17:02:33 +02:00
Carlos Martín Nieto
286369a81f
ssh: provide our own types for host key lengths
...
Instead of using the libssh2 defines, provide our own, which eases usage
as we do not need to check whether libgit2 was built with libssh2 or not.
2014-09-16 17:02:32 +02:00
Carlos Martín Nieto
0782fc43f8
net: use only structs to pass information about cert
...
Instead of spreading the data in function arguments, some of which
aren't used for ssh and having a struct only for ssh, use a struct for
both, using a common parent to pass to the callback.
2014-09-16 17:02:32 +02:00