nulltoken
c4f68b3503
errors: introduce GIT_EORPHANEDHEAD
2012-10-19 21:23:34 +02:00
nulltoken
0532e7bb87
branch: allow deletion of branch when HEAD's missing
2012-10-19 21:23:22 +02:00
nulltoken
8dd0bef921
tests: Fix unused variable warning
2012-10-19 20:35:12 +02:00
nulltoken
2df37f42c1
refs: cover more refname validity edge cases
2012-10-18 23:59:22 +02:00
nulltoken
4fd7e8e583
status: querying a bare repo returns EBAREREPO
2012-10-18 23:38:35 +02:00
nulltoken
c2e43fb1f2
diff: workdir diffing in a bare repo returns EBAREREPO
2012-10-18 23:38:27 +02:00
Vicent Martí
502be5ff3f
Merge pull request #993 from pwkelley/clar_update
...
Update clar and add reliable rename for Win32
2012-10-18 14:15:37 -07:00
Vicent Martí
feea12859a
Merge pull request #995 from nulltoken/fix/issue_994
...
revparse: properly handle refnames containing a @
2012-10-18 14:14:37 -07:00
nulltoken
5912d74c69
revparse: properly handle refnames containing a @
...
Fix #994
2012-10-18 23:05:33 +02:00
Philip Kelley
c08b8a3a73
Update clar and add reliable rename for Win32
2012-10-18 14:50:17 -04:00
Carlos Martín Nieto
b2b571ce0c
fetch: declare variables at the top of the block
2012-10-18 19:05:24 +02:00
Vicent Martí
6f6871a9db
Merge pull request #992 from carlosmn/fetch-cancel
...
remote: support fetch cancelation
2012-10-18 09:52:13 -07:00
Carlos Martín Nieto
f0d2ddbbf8
remote: support fetch cancelation
...
Introduce git_remote_stop() which sets a variable that is checked by
the fetch process in a few key places. If this is variable is set, the
fetch is aborted.
2012-10-18 04:31:03 +02:00
Russell Belfer
4c47a8bcfe
Merge pull request #968 from arrbee/diff-support-typechange
...
Support TYPECHANGE records in status and adjust checkout accordingly
2012-10-17 14:14:51 -07:00
Russell Belfer
52a61bb804
Fix minor bugs
...
Fixed no-submodule speedup of new checkout code. Fixed missing
final update to progress (which may go away, I realize). Fixed
unused structure in header and incorrect comment.
2012-10-17 14:10:23 -07:00
Ben Straub
6012e86839
Merge pull request #972 from PaulThompson/separate_strarray
...
Separated git_strarray from common.h. Added doxy comments.
2012-10-17 11:55:26 -07:00
Russell Belfer
e48bb71bec
Skip submodule checkout pass if no submodules
...
Skip the third pass of checkout (where submodules are checked out)
if the earlier passes found no submodules to be checked out.
2012-10-17 10:44:38 -07:00
Philip Kelley
5300cd759d
Merge pull request #988 from pwkelley/pack-objects
...
Incremental improvements to pack-objects logic
2012-10-17 09:14:42 -07:00
Philip Kelley
b4491b9911
Incremental improvements to pack-objects logic
...
Incorporate feedback for incr. improvements to pack-objects
2012-10-17 12:07:17 -04:00
Michael Schubert
70d41f6bcd
Fix -Wunused-but-set-variable warning
2012-10-16 23:42:01 +02:00
Vicent Martí
03452b347e
Merge pull request #987 from pwkelley/pthread_cond
...
Support pthread_cond_* on Win32
2012-10-16 10:54:30 -07:00
Vicent Marti
18217e7e8a
test: Don't be so picky with failed lookups
...
Not found means not found, and the other way around.
2012-10-16 19:37:21 +02:00
Philip Kelley
5e4f2b5faa
Support pthread_cond_* on Win32
2012-10-16 13:18:45 -04:00
Carlos Martín Nieto
a891841850
config: also free the XDG buffer
2012-10-16 17:58:19 +02:00
Vicent Martí
52748f7b9f
Merge pull request #952 from csware/config-locations
...
Config location fixes
2012-10-16 08:36:55 -07:00
Philip Kelley
9e37305aad
Merge pull request #984 from arrbee/fix-fnmatch-and-ignore
...
Fix single file ignores
2012-10-16 08:34:28 -07:00
Philip Kelley
ebb867558e
Merge pull request #985 from nulltoken/fix/leaks
...
test: fix some memory leaks
2012-10-15 15:58:53 -07:00
nulltoken
add5efe7e9
test: fix some memory leaks
2012-10-16 00:49:05 +02:00
Ben Straub
71b79a0aab
Merge pull request #982 from nulltoken/clone/no-checkout
...
clone: Explicit support of no-checkout option
2012-10-15 15:24:50 -07:00
Russell Belfer
52032ae536
Fix single-file ignore checks
...
To answer if a single given file should be ignored, the path to
that file has to be processed progressively checking that there
are no intermediate ignored directories in getting to the file
in question. This enables that, fixing the broken old behavior,
and adds tests to exercise various ignore situations.
2012-10-15 12:54:46 -07:00
Russell Belfer
d5a5191067
Import DOS fix for fnmatch
...
Because fnmatch uses recursion, there were some input sequences
that cause seriously degenerate behavior. This imports a fix
that imposes a max recursion limiter to avoid the worst of it.
2012-10-15 12:54:46 -07:00
Russell Belfer
824d5e4d26
Always use internal fnmatch, not system
2012-10-15 12:54:46 -07:00
Ben Straub
1c3acf148b
Merge pull request #978 from nulltoken/fix/reset-hard
...
reset: prevent hard reset in a bare repository
2012-10-15 12:02:20 -07:00
nulltoken
68206c54bf
test: fix some memory leaks
2012-10-15 20:41:43 +02:00
nulltoken
fa5d94a0d4
reset: prevent hard reset in a bare repository
2012-10-15 20:41:42 +02:00
nulltoken
c4f68b3202
clone: fix detection of remote HEAD
2012-10-15 20:40:37 +02:00
nulltoken
4d968f134b
clone: Explicit support of no-checkout option
2012-10-15 20:40:37 +02:00
Vicent Martí
1ddc537c77
Merge pull request #969 from ben/network_category
...
Test category for live network tests
2012-10-15 10:56:47 -07:00
Ben Straub
86a2da6e8a
Clone: use libgit2's test repos
2012-10-15 10:48:17 -07:00
Ben Straub
65415ea275
Tests: add "network" category
...
Split the clone tests into network and no-network suites.
2012-10-15 10:48:17 -07:00
Carlos Martín Nieto
7ae5ab5696
Fix leak in the tests
...
Also introduce the slective ref trimming promised but also missed in
the previous commit.
2012-10-15 16:35:10 +02:00
Carlos Martín Nieto
47f44b6ee4
refs: loosen the OID parsing
...
We used to require loose references to contain only an OID (possibly
after trimming the string). This is however not enough for letting us
lookup FETCH_HEAD, which can have a lot of content after the initial
OID.
Change the parsing rules so that a loose refernce must e at least 40
bytes long and the 41st (if it's there) must be accepted by
isspace(3). This makes the trim unnecessary, so only do it for
symrefs. This fixes #977 .
2012-10-15 14:00:19 +02:00
Philip Kelley
9d9288f417
Fix buffer overrun in git_buf_put_base64
2012-10-14 12:29:05 -04:00
Ben Straub
80a6e86bb6
Merge pull request #974 from nulltoken/EEXISTS
...
Enforce returning of EEXISTS when trying to overwrite a reference
2012-10-11 15:45:26 -07:00
Vicent Martí
26ddcfa4c4
Merge pull request #973 from AndrejMitrovic/DBinding
...
Add link to D libgit2 bindings.
2012-10-11 09:25:15 -07:00
Andrej Mitrovic
26127ea764
Add link to D libgit2 bindings.
2012-10-11 18:22:00 +02:00
nulltoken
b73200c1ed
tags: cover EEXISTS propagation upon creation
2012-10-11 14:15:40 +02:00
nulltoken
6251de1d17
branches: cover EEXISTS propagation upon moving
2012-10-11 14:09:27 +02:00
nulltoken
62993b6158
branches: propagate EEXISTS upon creation
2012-10-11 14:08:32 +02:00
Paul Thompson
b46708aaf9
Separated git_strarray from common.h. Added doxy comments.
2012-10-11 23:04:08 +11:00