Nikolai Vladimirov
8716b499e2
add option to allow git note overwrite
2013-01-03 16:31:36 +02:00
Ben Straub
922dd9788c
Move some clone tests to the nonetwork suite
2013-01-02 13:54:37 -08:00
Vicent Martí
cd5ca5b97f
Merge pull request #1152 from ben/clone-api-structification
...
Segregate in-memory and persisted remotes
2013-01-02 13:50:41 -08:00
Ben Straub
730df6d0f7
Include checkout options inline
2013-01-02 13:43:54 -08:00
Ben Straub
0642c1431e
Move url
to last place in parameter list
2013-01-02 12:44:47 -08:00
nulltoken
50a762a563
path: Teach UNC paths to git_path_dirname_r()
...
Fix libgit2/libgit2sharp#256
2012-12-26 23:07:25 +01:00
nulltoken
34b6f05f39
path: enhance git_path_dirname_r() test coverage
2012-12-26 11:59:07 +01:00
nulltoken
19c3c99ca8
remote: remove duplicated test
2012-12-24 18:18:40 +01:00
nulltoken
f19304d265
remote: Prevent create() from blindly overwriting
2012-12-24 18:18:31 +01:00
nulltoken
b0aa14aa3c
remote: Enhance in-memory remote test coverage
2012-12-24 16:54:27 +01:00
nulltoken
6bd09ecc14
Fix MSSVC compilation issue
2012-12-24 16:54:26 +01:00
Ben Straub
2808ec9ab4
Rename test to make @nulltoken happy
2012-12-21 13:15:37 -08:00
Ben Straub
79000951ec
In-memory remotes don't have names
2012-12-21 08:05:59 -08:00
Ben Straub
874dcb25eb
Remote: deprecate dangling, prevent saving in-memory
2012-12-20 12:01:13 -08:00
Ben Straub
29f27599ea
Rename remote creation APIs
...
git_remote_add -> git_remote_create
git_remote_new -> git_remote_create_inmemory
2012-12-20 10:52:57 -08:00
Ben Straub
621b50e4d5
Clone: trust but verify
2012-12-19 17:02:06 -08:00
Ben Straub
b412d56389
Add more clone options. Push test suite segfaults.
2012-12-19 17:02:06 -08:00
Edward Thomson
7fcec83428
fetchhead reading/iterating
2012-12-19 16:57:30 -06:00
Sascha Cunz
d5cf4665a9
Fix some leaks and (possibly) dangling pointers in tests
...
Also adds some asserts.
2012-12-19 08:04:31 +01:00
Sascha Cunz
96a289f5f3
clone-empty-test: Don't use one pointer for two things
...
... so we can clean up correctly.
2012-12-19 05:24:23 +01:00
Sascha Cunz
3dc0207bc0
revwalk-test: Don't leak the second repository
2012-12-19 05:22:46 +01:00
Sascha Cunz
26290cd13b
Reset global variable to NULL after free'ing resource
2012-12-18 19:52:37 +01:00
Vicent Martí
e62171e2fc
Merge pull request #1151 from arrbee/fix-diff-constructor-names
...
Fix diff constructor names
2012-12-17 11:10:25 -08:00
Russell Belfer
56c72b759c
Fix diff constructor name order confusion
...
The diff constructor functions had some confusing names, where the
"old" side of the diff was coming after the "new" side. This
reverses the order in the function name to make it less confusing.
Specifically...
* git_diff_index_to_tree becomes git_diff_tree_to_index
* git_diff_workdir_to_index becomes git_diff_index_to_workdir
* git_diff_workdir_to_tree becomes git_diff_tree_to_workdir
2012-12-17 11:00:53 -08:00
Vicent Martí
0d10e79dd9
Merge pull request #1149 from nulltoken/topic/blob_isbinary
...
Introduce git_blob_is_binary()
2012-12-17 10:13:36 -08:00
nulltoken
a3337f10bb
blob: introduce git_blob_is_binary()
2012-12-17 17:20:31 +01:00
Sascha Cunz
22d23c61ed
Cleanup the test correctly
2012-12-17 17:15:58 +01:00
Ben Straub
c4e3e797d1
Ensure static variables are nulled after every test
2012-12-16 12:27:11 -08:00
Ben Straub
a7f125cdba
Fix fetchhead tests
2012-12-15 14:56:20 -08:00
Ben Straub
57f5d8dca5
Remove placeholder files during tests
2012-12-14 14:15:42 -08:00
Ben Straub
1164acde96
Rebase fixup
2012-12-14 14:00:35 -08:00
Ben Straub
850b1edfe8
Allow clone to handle empty repos
2012-12-14 13:58:44 -08:00
Ben Straub
b9e7e2b4e1
Move non-options back out of options struct
2012-12-14 13:46:45 -08:00
Ben Straub
18b2d560d3
Deploy git_clone_options; remove git_clone_bare
2012-12-14 13:03:59 -08:00
Vicent Marti
2d466b7dcb
tests: Fix unused temp repo
2012-12-14 02:49:11 +01:00
Vicent Marti
509216a5b2
test: Fix clone tests
2012-12-14 02:49:01 +01:00
Vicent Marti
b0b9fd3245
Merge remote-tracking branch 'origin/clone-auth' into development
2012-12-14 02:41:53 +01:00
Jameson Miller
8a8820d89f
Add test to clone with absolute path
2012-12-13 17:58:12 -05:00
Ben Straub
24393ea6d3
Stop premature remote freeing when cloning
2012-12-13 09:14:56 -08:00
Ben Straub
7c353afd0e
Define constant for default fetch spec
2012-12-13 08:47:29 -08:00
Ben Straub
44f36f6e3b
Convert clone to use dangling remotes
2012-12-12 19:48:44 -08:00
Ben Straub
b914e17d82
API to set a dangling remote's repository
2012-12-12 12:23:24 -08:00
Ben Straub
a71c27ccda
Allow creation of dangling remotes
2012-12-12 12:15:25 -08:00
Russell Belfer
91e7d26303
Fix iterator reset and add reset ranges
...
The `git_iterator_reset` command has not been working in all cases
particularly when there is a start and end range. This fixes it
and adds tests for it, and also extends it with the ability to
update the start/end range strings when an iterator is reset.
2012-12-10 15:38:41 -08:00
Russell Belfer
9950d27ab6
Clean up iterator APIs
...
This removes the need to explicitly pass the repo into iterators
where the repo is implied by the other parameters. This moves
the repo to be owned by the parent struct. Also, this has some
iterator related updates to the internal diff API to lay the
groundwork for checkout improvements.
2012-12-10 15:38:28 -08:00
Ben Straub
59bccf33c4
Add a payload param to git_cred_acquire_cb
...
Fixes #1128 .
2012-12-10 11:11:01 -08:00
Ben Straub
72629a10e3
Clean up GCC build warnings
2012-12-10 10:05:31 -08:00
Carlos Martín Nieto
f1c75b94a1
tree: relax the filemode parser
...
There are many different broken filemodes in the wild so we need to
protect against them and give something useful up the chain. Don't
fail when reading a tree from the ODB but normalize the mode as best
we can.
As 664 is no longer a mode that we consider to be valid and gets
normalized to 644, we can stop accepting it in the treebuilder. The
library won't expose it to the user, so any invalid modes are a bug.
2012-12-07 16:59:18 +01:00
Vicent Marti
a9c07c47ea
tests: MSVC fix
2012-12-05 21:06:54 +01:00
Vicent Marti
bf192cdb43
versions: MSVC build fixes
2012-12-05 20:56:27 +01:00