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
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
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
Carlos Martín Nieto
9311423c34
tests: plug a leak in the repo tests
...
The second call to assert_config_entry_on_init_bytype is cleaned up by
the main cleanup function, but that overwrites the first _repo. Make
sure that one doesn't leak.
2012-06-21 02:30:30 +02:00
Carlos Martín Nieto
b3aa440641
repository: avoid opening the repository twice on reinit
...
The call to repo_init_reinit already takes care of opening the
repository and giving us a git_repository object to give to the
caller. There is no need to call git_repository_open again.
2012-06-21 02:15:25 +02:00
Vicent Martí
9fae82405d
Merge pull request #776 from scottjg/mingw-makefile-fix
...
Fix Makefile.emebed for mingw32
2012-06-20 12:50:41 -07:00
Scott J. Goldman
e905c1fc14
More Makefile.embed cleanups
...
Don't need unix/*.c for windows, don't need wildcard for regex.c
2012-06-20 11:09:35 -07:00
Vicent Martí
eaf18ac312
Merge pull request #777 from benstraub/revparse-fixup
...
Revparse fixup
2012-06-20 03:51:25 -07:00
Ben Straub
a15e7f8621
Fix indentation.
2012-06-19 21:12:04 -07:00
Ben Straub
eb6bc45f6d
Avoid uninitialized variable error.
2012-06-19 21:11:48 -07:00
Scott J. Goldman
e96e3be762
Fix Makefile.emebed for mingw32
...
otherwise we can't compile the native parts of the rugged gem on Windows
2012-06-19 18:08:15 -07:00
Carlos Martín Nieto
1d94a7d0f6
diff: make sure we free all allocated resources
...
When the creation of one iterator fails, we need to free the prefix
and possibly one of the iterators. Make sure we do so.
2012-06-20 02:22:07 +02:00
Carlos Martín Nieto
c06e000394
odb: don't leak when detecting id ambiguity
...
If we find several objects with the same prefix, we need to free the
memory where we stored the earlier object. Keep track of the raw.data
pointer across read_prefix calls and free it if we find another
object.
2012-06-20 01:41:30 +02:00
Carlos Martín Nieto
cdca82c784
Plug a few leaks
2012-06-20 00:46:34 +02:00
Vicent Martí
c3ce8d0c9a
Merge pull request #775 from arrbee/fix-index-filemodes
...
Make index add/append support core.filemode flag
2012-06-19 15:17:35 -07:00
Russell Belfer
77d65af439
Nicer constant
2012-06-19 15:16:38 -07:00
Vicent Martí
5232994072
Merge pull request #768 from nulltoken/topic/expose-message-prettify
...
message: Expose git_message_prettify()
2012-06-19 15:04:45 -07:00
Carlos Martín Nieto
053b509668
revparse: handle a non-existent path in the colon syntax
...
oid_for_tree_path may not always find the path in the tree, in which
case we need to return an error. The current code doesn't do this and
results in undefined behavior.
2012-06-19 23:47:17 +02:00
Russell Belfer
da825c92d9
Make index add/append support core.filemode flag
...
This fixes git_index_add and git_index_append to behave more like
core git, preserving old filemode data in the index when adding
and/or appending with core.filemode = false.
This also has placeholder support for core.symlinks and
core.ignorecase, but those flags are not implemented (well,
symlinks has partial support for preserving mode information in
the same way that git does, but it isn't tested).
2012-06-19 14:27:02 -07:00
Vicent Martí
1b0ef5aa03
Merge pull request #774 from benstraub/revparse-colon-segfault
...
Fix potential segfault in revparse.
2012-06-19 09:27:40 -07:00
Ben Straub
2c90145aad
Fix potential segfault in revparse.
2012-06-19 09:25:55 -07:00
nulltoken
743a4b3bdd
message: Expose git_message_prettify()
...
git_commit() and git_tag() no longer prettify the
message by default. This has to be taken care of
by the caller.
This has the nice side effect of putting the
caller in position to actually choose to strip
the comments or not.
2012-06-19 10:02:22 +02:00
Vicent Martí
68f527c448
Merge pull request #758 from libgit2/config-values-containing-quotes
...
Quotes inside config values don't survive serialization/deserialization
2012-06-18 17:50:12 -07:00
Vicent Marti
8c4c357f18
clar: Fix warnings
2012-06-19 02:43:36 +02:00
Vicent Martí
31eed56b9e
Merge pull request #753 from nulltoken/topic/merge-base-many
...
Expose git_merge_base_many()
2012-06-18 17:36:14 -07:00
Vicent Marti
b93688d06d
Merge remote-tracking branch 'yorah/fix/notes-creation' into development
...
Conflicts:
src/notes.c
2012-06-19 02:33:03 +02:00
Vicent Marti
515a4c7c06
tree: Proper path comparison logic
2012-06-19 00:59:04 +02:00
Tim Clem
ac8eac2f66
Fix compile errors when building on windows
...
Errors were due to not including winsock2 early enough.
2012-06-15 11:25:52 -07:00
Tim Clem
e00b56eb04
Fix broken tests caused by no longer prettifying by default
2012-06-15 10:18:08 -07:00
Tim Clem
e4031cb531
Kill message_prettify - we will export instead
2012-06-15 09:26:56 -07:00
Tim Clem
bc2deed0fb
Don't strip comments (#) from commit messages by default
2012-06-15 09:13:59 -07:00
Vicent Martí
86ea6ceda7
Merge pull request #765 from benstraub/msvc-pch
...
Precompile headers for MSVC.
2012-06-13 14:35:11 -07:00
Ben Straub
73aaf67439
Precompile headers for MSVC.
2012-06-13 14:28:47 -07:00
Carlos Martín Nieto
67d334c1cd
config: add more tests for writing escaped chars
2012-06-13 23:26:00 +02:00
Carlos Martín Nieto
49938cad91
config: correctly escape quotes in the value
...
When a configuration option is set, we didn't check to see whether
there was any escaping needed. Escape the available characters so we
can unescape them correctly when we read them.
2012-06-13 23:26:00 +02:00
Adam Roben
750be86aed
Add a test that shows we don't preserve quotes in config values
2012-06-13 21:43:34 +02:00
Vicent Martí
53774eb818
Merge pull request #764 from sleeper/issue_763
...
Fix issue #763
2012-06-13 08:59:32 -07:00