Scott J. Goldman
7e8c146c6b
Don't rmdir() nonexistent dirs in object::tree::frompath tests
...
It causes the clar testsuite to abort on Windows, and isn't necessary.
2012-06-29 00:47:46 -07:00
Vicent Marti
0e2fcca850
tree: Bring back entry_bypath
...
Smaller, simpler, faster.
2012-06-29 02:21:12 +02:00
Ben Straub
cbc02c1021
Merge pull request #788 from nulltoken/topix/revparse
...
Small revparse colon syntax improvements
2012-06-28 11:47:34 -07:00
nulltoken
0e7af9e758
revparse: unfound nth parent returns ENOTFOUND
2012-06-28 19:12:42 +02:00
nulltoken
0d23c62c48
revparse: handle specs with caret and colon
2012-06-28 19:12:41 +02:00
nulltoken
5b68ba7e15
revparse: unfound treepath returns ENOTFOUND
2012-06-28 19:12:40 +02:00
nulltoken
faaa7c517c
revparse: return trees through the "colon" syntax
2012-06-28 19:12:40 +02:00
nulltoken
e28dd29b6e
revparse: replace spaces with tabs
2012-06-28 19:12:39 +02:00
Carlos Martin Nieto
1d8943c640
mwindow: allow memory-window files to deregister
...
Once a file is registered, there is no way to deregister it, even
after the structure that contains it is no longer needed and has been
freed. This may be the source of #624 .
Allow and use the deregister function to remove our file from the
global list.
2012-06-28 12:10:33 +02:00
Vicent Martí
1de44c2493
Merge pull request #791 from carlosmn/index-path
...
indexer: don't use '/objects/pack/' unconditionally
2012-06-28 03:03:43 -07:00
Carlos Martín Nieto
371599576a
indexer: don't use '/objects/pack/' unconditionally
...
Not everyone who indexes a packfile wants to put it in the standard
git repository location.
2012-06-28 10:24:03 +02:00
Vicent Martí
ed754a75e1
Merge pull request #783 from nulltoken/topic/reinit-coverage
...
Repo reinit fix + enhanced test coverage
2012-06-25 23:28:17 -07:00
Vicent Martí
c6713398ba
Merge pull request #785 from nulltoken/topic/refs-fromglob
...
Topic/refs fromglob
2012-06-25 23:27:35 -07:00
Ben Straub
2b63db4cbb
Clone: update index to HEAD.
...
git_clone now produces a repo that
`git status` reports as clean!
2012-06-25 16:04:59 -07:00
Ben Straub
24b0d3d56e
Checkout: read blob objects to file.
...
Properly handling file modes. Still needs line-
ending transformations.
2012-06-25 16:02:16 -07:00
Vicent Martí
b15b91f5df
Merge pull request #786 from schu/indexer
...
indexer: start parsing input data immediately
2012-06-25 10:32:05 -07:00
Michael Schubert
f9fd710581
indexer: start parsing input data immediately
...
Currently, the first call of git_indexer_stream_add adds the data to the
underlying pack file and opens it for later use, but doesn't start
parsing the already available data.
This means, git_indexer_stream_finalize only works if
git_indexer_stream_add was called at least twice. Kill this limitation
by parsing available data immediately.
2012-06-25 15:38:36 +02:00
Vicent Marti
60029f499e
amigaos: Add missing include
2012-06-24 16:56:32 +02:00
nulltoken
1163434646
revwalk: make git_revwalk_(push|hide)_glob() leverage git_reference_foreach_glob()
2012-06-22 21:42:10 +02:00
nulltoken
527ed55448
references: introduce git_reference_foreach_glob()
2012-06-22 21:40:24 +02:00
Vicent Marti
798e4d53dc
amigaos: Cleanup
2012-06-22 21:25:17 +02:00
Vicent Marti
2ae052d1b1
Merge branch 'pull-req' of https://github.com/chris-y/libgit2 into amigaos
2012-06-22 20:48:50 +02:00
Scott J. Goldman
430af731d2
Merge pull request #784 from nulltoken/patch-1
...
Fix MSVC compilation errors
2012-06-22 10:42:43 -07:00
nulltoken
d046945cef
Fix MSVC compilation errors
2012-06-22 16:42:37 +03:00
nulltoken
d6d8cc276d
tests-clar: fix isolation of repo initialization tests
2012-06-22 13:42:35 +02:00
nulltoken
dbb24a3962
repository: enhance reinitialization test coverage
2012-06-22 11:32:50 +02:00
nulltoken
2c227b8b33
repository: fix configuration updating issue while reinitialization
...
When the repository was reinitialized, every configuration change in repo_init_config() was directly performed against the file on the filesystem. However, a previous version of the configuration had previously been loaded in memory and attached to the repository, in repo_init_reinit().
The repository was unaware of the change and the stale cached version of the configuration never refreshed.
2012-06-22 11:32:49 +02:00
Michael Schubert
f7292a990c
tests-clar: mark unused variables
2012-06-22 10:13:50 +02:00
Vicent Martí
fb8aa9e11b
Merge pull request #782 from nulltoken/topic/branch-foreach
...
Branch foreach
2012-06-21 20:12:50 -07:00
Ben Straub
830388a728
Clone: non-empty-dir test, now for Win32.
2012-06-21 20:07:32 -07:00
Ben Straub
acdd3d959b
Clone: allow empty dirs.
2012-06-21 19:51:56 -07:00
Ben Straub
5a20196f2d
Fix warning on msvc build.
2012-06-21 15:11:13 -07:00
Ben Straub
ec532d5ede
Checkout: initial tree walkers.
2012-06-21 14:54:12 -07:00
Ben Straub
cb2dc0b0f8
Clone: replace one hardcoded value with another.
2012-06-21 13:37:08 -07:00
Vicent Martí
7e912dd659
Merge pull request #780 from schu/cleanup
...
Cleanup
2012-06-21 11:22:45 -07:00
Scott J. Goldman
6a9239990a
Merge pull request #781 from liyuray/development
...
fix crash issue on mingw caused by variable argument list type promotion.
2012-06-21 11:15:30 -07:00
Ben Straub
14741d62d9
Clone: new home for git_checkout_force.
2012-06-21 11:13:19 -07:00
Ben Straub
941611153a
Clone: minor cleanup and whitespace.
2012-06-21 10:34:11 -07:00
Ben Straub
af58ec9e8d
Clone: prefer "master" as default branch.
2012-06-21 09:53:45 -07:00
Ben Straub
4fbc899acf
Clone: local branch for remote HEAD.
...
Now creating a local branch that tracks to the
origin's HEAD branch, and setting HEAD to that.
2012-06-21 09:53:45 -07:00
Ben Straub
8340dd5d5f
Clone: remove fragile path-handling code.
...
Also standardized on 3-space indentation. Sorry
about that.
2012-06-21 09:53:45 -07:00
Ben Straub
da73fb70de
Disable long-running test.
2012-06-21 09:53:45 -07:00
Ben Straub
3c4b008c4d
Disable failing test (for now).
2012-06-21 09:53:45 -07:00
Ben Straub
f2a855d5fe
Clone: restructure.
2012-06-21 09:53:44 -07:00
Ben Straub
bb1f6087e4
Add progress reporting to clone.
2012-06-21 09:53:44 -07:00
Ben Straub
764df57e82
Add git_clone and git_clone_bare.
...
So far they only create a repo, setup the "origin"
remote, and fetch. The API probably needs work as
well; there's no way to get progress information
at this point.
Also uncovered a shortcoming; git_remote_download
doesn't fetch over local transport.
2012-06-21 09:53:44 -07:00
nulltoken
d4827081ea
branch: drop git_branch_list()
2012-06-21 18:51:32 +02:00
nulltoken
a8fd805e2f
branch: add git_branch_foreach()
2012-06-21 18:51:27 +02:00
liyuray
dfa0b65c69
fix below issues on mingw:
...
1. compile warning:
D:\libgit2.git\src\win32\posix_w32.c: In function 'p_open':
D:\libgit2.git\src\win32\posix_w32.c:235:10: warning: 'mode_t' is promoted to 'int' when passed through '...' [enabled by default]
D:\libgit2.git\src\win32\posix_w32.c:235:10: note: (so you should pass 'int' not 'mode_t' to 'va_arg')
D:\libgit2.git\src\win32\posix_w32.c:235:10: note: if this code is reached, the program will abort
2. test crash.
3. the above two issues are same root cause. please see http://www.eskimo.com/~scs/cclass/int/sx11c.html
2012-06-21 20:17:54 +08:00
Michael Schubert
f95121cb4f
object: add missing git_odb_object_free
2012-06-21 10:33:24 +02:00