Carlos Martín Nieto
081d229106
revwalk: don't assume malloc succeeds
2012-04-12 20:25:24 +02:00
Russell Belfer
7784bcbbee
Refactor git_repository_open with new options
...
Add a new command `git_repository_open_ext` with extended options
that control how searching for a repository will be done. The
existing `git_repository_open` and `git_repository_discover` are
reimplemented on top of it. We may want to change the default
behavior of `git_repository_open` but this commit does not do that.
Improve support for "gitdir" files where the work dir is separate
from the repo and support for the "separate-git-dir" config. Also,
add support for opening repos created with `git-new-workdir` script
(although I have only confirmed that they can be opened, not that
all functions work correctly).
There are also a few minor changes that came up:
- Fix `git_path_prettify` to allow in-place prettifying.
- Fix `git_path_root` to support backslashes on Win32. This fix
should help many repo open/discover scenarios - it is the one
function called when opening before prettifying the path.
- Tweak `git_config_get_string` to set the "out" pointer to NULL
if the config value is not found. Allows some other cleanup.
- Fix a couple places that should have been calling
`git_repository_config__weakptr` and were not.
- Fix `cl_git_sandbox_init` clar helper to support bare repos.
2012-04-11 12:11:35 -07:00
Russell Belfer
1de77cd314
Cannot set workdir to a nonexistent dir
2012-04-11 12:10:14 -07:00
Vicent Martí
64b402f856
status: Remove status_old
...
This is Git yo. You can fetch stuff from the history if you need it.
2012-04-11 19:19:12 +02:00
Vicent Martí
e1f6f94a92
tests: Remove unused file
2012-04-11 19:17:21 +02:00
Carlos Martín Nieto
a62053a050
error-handling local transport
2012-04-11 19:16:10 +02:00
Carlos Martín Nieto
5eb8affb38
error-handling: fetch
2012-04-11 19:16:10 +02:00
Carlos Martín Nieto
fc1cc2051e
Use new error handling in the example network code
2012-04-11 19:16:10 +02:00
Carlos Martín Nieto
bd6585a7f5
netops: show winsock error messages on Windows
2012-04-11 19:16:10 +02:00
Carlos Martín Nieto
56b7df108c
error-handling: netops
2012-04-11 19:16:10 +02:00
Carlos Martín Nieto
25530fca3b
error-handling: http
2012-04-11 19:16:10 +02:00
Carlos Martín Nieto
2b386acdb3
error-handling: git transport
2012-04-11 19:16:10 +02:00
Carlos Martín Nieto
84d250bfeb
error-handling: protocol, pkt
2012-04-11 19:16:10 +02:00
Carlos Martín Nieto
4376f7f6f4
error-handling: remote, transport
2012-04-11 19:16:10 +02:00
nulltoken
d4d648b042
Fix compilation errors and warnings
2012-04-11 15:30:56 +02:00
Carlos Martín Nieto
1a2b87257d
Typedefs don't have enum in front
2012-04-11 14:27:40 +02:00
Vicent Martí
0a20eee953
Merge pull request #619 from nulltoken/topic/branches
...
Basic branch management API
2012-04-11 03:43:30 -07:00
nulltoken
b78fb64d2f
repository: make git_repository_set_workdir() prettify the path it is being passed
2012-04-11 12:40:21 +02:00
Vicent Martí
dcfdb958e2
Merge branch 'new-error-handling' of github.com:libgit2/libgit2 into new-error-handling
2012-04-11 12:38:45 +02:00
nulltoken
4615f0f71b
branch: add git_branch_move()
2012-04-10 21:39:06 +02:00
nulltoken
555aa453ba
fileops: Make git_futils_mkdir_r() able to skip non-empty directories
2012-04-10 21:39:05 +02:00
nulltoken
731df57080
Add basic branch management API: git_branch_create(), git_branch_delete(), git_branch_list()
2012-04-10 21:39:03 +02:00
nulltoken
79fd42301e
transport/local: Fix peeling of nested tags
2012-04-10 21:39:01 +02:00
nulltoken
3f46f313cb
tag: Add git_tag_peel() which recursively peel a tag until a non tag git_object is met
2012-04-10 21:38:49 +02:00
Vicent Martí
efef3795a2
Merge pull request #618 from nulltoken/fix/warning
...
Fix compilation warning
2012-04-04 10:37:25 -07:00
Carlos Martín Nieto
31e80290a1
mwindow: make sure the whole range is contained inside the same window
...
Looking through the open windows to check whether we can re-use an
open window should take into account whether both `offset` and `offset
+ extra` are contained within the same window. Failure to do so can
lead to invalid memory accesses. This closes #614 .
While we're in the area remove an outdated assert.
2012-04-04 16:26:08 +02:00
nulltoken
17bd6de3fb
Fix MSVC "unreferenced local variable" compilation warning.
2012-04-04 13:59:58 +02:00
Carlos Martín Nieto
8e8b6b01f5
Clean up valgrind warnings
2012-04-04 13:13:43 +02:00
Vicent Martí
bbb3723657
clar: Properly create file in helper
2012-04-04 01:31:29 +02:00
Vicent Martí
a12c291b54
Merge pull request #617 from schu/tests-fixup
...
tests-clar: cleanup
2012-04-03 04:03:47 -07:00
schu
13ed29664f
tests-clar/index: actually assert result
...
Signed-off-by: schu <schu-github@schulog.org>
2012-04-03 11:09:39 +02:00
schu
a912ea3f9d
tests-clar/object: remove unused helper print_tree()
...
Signed-off-by: schu <schu-github@schulog.org>
2012-04-03 11:08:23 +02:00
schu
daa22dee28
tests-clar/commit: fix memory leaks
...
Signed-off-by: schu <schu-github@schulog.org>
2012-04-03 11:07:04 +02:00
Vicent Martí
471bb8b120
tests: Cleanup & fix test suite
2012-04-03 04:52:52 +02:00
Vicent Martí
2ec83ff09d
Merge pull request #596 from nulltoken/fix/non-7bit-ascii-reference-names
...
Allow references to bear non-7bit-ascii names on Windows
2012-04-02 17:25:05 -07:00
Vicent Martí
16eaa15059
Merge pull request #606 from benstraub/t04_commit_to_clar
...
Ported t04_commit.c to Clar.
2012-04-02 17:24:16 -07:00
Vicent Martí
4cba39ac58
Merge pull request #615 from benstraub/port-all-tests-to-clar
...
Port all tests to clar
2012-04-02 17:23:17 -07:00
Vicent Martí
5afe95d206
travis: Change notify email
2012-04-02 20:45:04 +02:00
Vicent Martí
73fe6a8e20
error-handling: Commit (WIP)
2012-04-02 20:41:48 +02:00
Vicent Martí
34a064d962
Merge pull request #616 from drahosp/development
...
Travis-CI integration
2012-04-02 11:41:15 -07:00
Peter Drahoš
f9abcbdf53
Initial Travis CI build
2012-04-02 00:33:01 +02:00
Peter Drahoš
37029314d4
Added Travis CI build status
2012-04-02 00:32:47 +02:00
Peter Drahoš
3433a69954
Removed my duplicate entry
2012-04-02 00:32:21 +02:00
nulltoken
09719c500c
reference: Fix creation of references with extended ASCII characters in their name
2012-04-01 14:33:32 +02:00
Ben Straub
b173121555
Simple readability fixes.
2012-03-31 20:12:29 -07:00
Ben Straub
20ec426dde
Discovered cl_git_strequal! Mounted a crusade!
2012-03-31 19:47:59 -07:00
Ben Straub
fd29cd13b7
Moved testing resources to clar, and removed old tests directory.
...
Removed the BUILD_CLAR CMake flag, and updated the readme.
2012-03-31 16:10:01 -07:00
Ben Straub
270303ca7a
Moved more assertions inside Clar test helpers.
2012-03-31 15:51:35 -07:00
Ben Straub
9297b6e0a1
Removing test suites that have been ported to Clar:
...
* t00 / 6e86fb3 (mentioned in #406 )
* t01 / fc60c4a (mentioned in #406 )
* t03 / bcbabe6
* t04 / PR #606
* t05 / d96f2c3
* t06 / 6c106ee
* t07 / 2ef582b
* t08 / b482c42
* t09 / 9a39a36
* t10 / 00a4893
* t12 / 7c3a4a7
* t13 / 1cb9b31
* t17 / cdaa6ff (mentioned in #406 )
* t18 / efabc08
2012-03-31 14:15:18 -07:00
Ben Straub
8e82600e67
Ref normalization test helpers now doing internal asserts.
2012-03-31 14:14:31 -07:00