Carlos Martín Nieto
8f866daee5
Lay down the fundations for the network code
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-06-26 18:18:11 +02:00
Carlos Martín Nieto
92cb6aa929
Add git_refspec_transform
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-06-26 18:18:11 +02:00
Carlos Martín Nieto
63f91e1ce8
Add git.git's fnmatch, which is really GNU's and the git__fnmatch wrapper
...
If the strings match, git__fnmatch returns GIT_SUCCESS and
GIT_ENOMATCH on failure to match.
MSVC fixes: Added a test for _MSC_VER and (in that case) defined
HAVE_STRING_H to 1 so it doesn't try to include <strings.h> which
doesn't exist in the MSVC world. Moved the function declarations to
use the modern inline ones so MSVC doesn't have a fit. Added casts
everywhere so MSVC doesn't crap its pants.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-06-26 18:18:11 +02:00
Carlos Martín Nieto
f8f3feb0d3
Add a to-do list for remotes
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-06-26 18:18:11 +02:00
Carlos Martín Nieto
9c82357be7
Add a remotes API
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-06-26 18:18:10 +02:00
Ankur Sethi
2c0ec236e9
added defines for Haiku in types.h
2011-06-23 13:36:09 +00:00
Vicent Marti
984ed6b6be
odb: Add GIT_EPASSTHROUGH
...
Allows a custom user backend to passthrough one of the callbacks. Used
for e.g. caching backends.
2011-06-19 12:50:45 +02:00
Vicent Marti
bfd5e3e2a2
config: Fix API docs
2011-06-19 12:50:45 +02:00
Vicent Marti
19cb6857a4
config: Bring back git_config_open_global
...
Scott commands, I obey.
2011-06-18 01:50:48 +02:00
Vicent Marti
07ff881750
config: Cleanup external API
...
Do not mess with environment variables anymore. The new external API has
more helper methods, and everything is explicit.
2011-06-18 00:39:39 +02:00
Carlos Martín Nieto
b22d147986
Add git_repository_config API
...
This function puts the global and repository configurations in one
git_config object and gives it to the user.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-17 22:30:29 +02:00
Vicent Marti
d144c569f3
Update documentation
...
Fix all the missmatched arguments in the docs
2011-06-16 03:06:22 +02:00
Vicent Marti
f1d018513a
oid: Uniformize ncmp methods
...
Drop redundant methods. The ncmp method is now public
2011-06-16 02:50:08 +02:00
Vicent Marti
fa48608ec3
oid: Rename methods
...
Yeah. Finally. Fuck the old names, this ain't POSIX
and they don't make any sense at all.
2011-06-16 02:36:21 +02:00
Vicent Marti
43521d0688
refs: Rename git_referece_listcb to _foreach
...
Same name as `git_config_foreach`
2011-06-16 02:27:43 +02:00
Vicent Marti
536955f9d7
Add method to get the compiled version of the lib
2011-06-16 02:21:33 +02:00
Vicent Martí
ef9a6f4cbc
Merge pull request #261 from Romain-Geissler/discovery-path-v2
...
Fix: GIT_PATH_PATH_SEPARATOR is now a semi-colon under Windows.
2011-06-15 13:47:41 -07:00
Romain Geissler
0657e46dee
Fix: GIT_PATH_PATH_SEPARATOR is now a semi-colon under Windows.
...
GIT_PATH_LIST_SEPARATOR and GIT_PATH_MAX are made public so
that it's can be used by a client.
2011-06-15 22:11:18 +02:00
Scott Chacon
737406b7ab
fix gid_ misspelling
2011-06-14 09:31:19 -07:00
Vicent Marti
b023321669
Remove custom backends
...
All the custom backend code will be moved to a separate project,
together with the new MySQL backend.
2011-06-14 17:40:17 +02:00
Vicent Martí
e3f56a2b57
Merge pull request #216 from glesserd/development
...
git_tag_create{,_o,_frombuffer} correction and improvement
2011-06-08 08:11:26 -07:00
Carlos Martín Nieto
a2a305fcf4
config: explain the cfg and file relationship better
...
It's not clear how git_config and git_config_file relate to one
another. Be more explicit about their relationship in the function
documentation.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-07 15:39:40 +02:00
Carlos Martín Nieto
ce78f39e27
config: update the git_config_add_file documentation
...
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
2011-06-07 14:18:22 +02:00
Vicent Marti
340fc0d40a
threads: Cleanup TLS declarations
...
This time for good.
2011-06-07 03:39:19 +02:00
Vicent Marti
9d77d83a81
Revert "threads: Fix TLS declarations"
...
This commit uploaded an old broken test. Oops!
2011-06-07 03:38:09 +02:00
Vicent Martí
1097dacd7d
Merge pull request #240 from Romain-Geissler/tree-object-type
...
Tree: Added a function that returns the type of a tree entry.
2011-06-06 18:33:38 -07:00
Vicent Martí
9b1692ebfc
Merge pull request #239 from pegonma/oid_prefix
...
Search objects of different types given OID prefix
2011-06-06 18:31:21 -07:00
Vicent Martí
1b0d92b141
Merge pull request #238 from pegonma/git_oid_ncmp
...
Better name for git_oid_match
2011-06-06 18:28:11 -07:00
Vicent Martí
00c31dd293
Merge pull request #234 from Romain-Geissler/entry-count-API-uniformisation
...
[Tree | Index] API uniformisation
2011-06-06 18:26:50 -07:00
Vicent Marti
64fe8c62f9
threads: Fix TLS declarations
...
Cleanup the thread-utils file. Do not define TLS if libgit2 is not
threadsafe.
2011-06-07 03:22:32 +02:00
Romain Geissler
ff9a4c130d
Tree: Added a function that returns the type of a tree entry.
2011-06-06 17:14:30 +02:00
Marc Pegon
c09093cce2
Renamed git_oid_match to git_oid_ncmp.
...
As suggested by carlosmn, git_oid_ncmp would probably
be a better name than git_oid_match, for it does the same
as git_oid_cmp but only up to a certain amount of hex digits.
2011-06-06 17:04:37 +02:00
Marc Pegon
790c6c95fe
Added methods to search objects of different types
...
given an OID prefix.
2011-06-06 11:55:48 +02:00
Romain Geissler
f11e079733
Index: API uniformisation: Use unsigned int for all index number.
...
Feature Added: Search an unmerged entry by path (git_index_get_unmerged
renamed to git_index_get_unmerged_bypath) or by index (git_index_get_unmerged_byindex).
2011-06-05 21:19:03 +02:00
Romain Geissler
e5c8009731
Tree: API uniformasation: Use unsigned int for all index number.
2011-06-05 21:18:05 +02:00
Vicent Marti
602ee38b6e
repository: Export all internal paths
2011-06-04 20:45:09 +02:00
David Glesser
f4c925c514
Change a dirty indentation
2011-06-04 16:09:19 +02:00
Vicent Martí
793545ef2b
Merge pull request #227 from Romain-Geissler/discovery-path-v2
...
Discovery path v2
2011-06-03 17:41:53 -07:00
Romain Geissler
fd0574e5ad
Repository: Added the git_repository_discover function that finds by itself the git directory that manage a given directory path.
2011-06-04 01:05:36 +02:00
Vicent Marti
3a42e0a370
index: Add git_index_entry_stage
method
...
As suggested by Romain-Geissler
2011-06-03 21:38:55 +02:00
Vicent Marti
d0323a5f63
short-oid: Cleanup
2011-06-01 23:40:42 +02:00
Marc Pegon
da03c9f35b
Changed return value of git_oid_match to be consistent with the other compare methods (0 means oids match). Added method to compare prefixes of hex formatted oids.
2011-06-01 23:40:42 +02:00
Marc Pegon
ac2b94ad76
Added a GIT_OID_MINPREFIXLEN constant to define the minimum length allowed for oid prefixes (set to 4, like in git). Consequently updated some object lookup methods and their documentation.
2011-06-01 23:40:41 +02:00
Marc Pegon
dd453c4dbf
Added git.git sha1 lookup method to replace simple binary search in pack backend.
...
Implemented find_unique_short_oid for pack backend, based on git sha1 lookup method;
finding an object given its full oid is just a particular case of searching
the unique object matching an oid prefix (short oid).
Added git_odb_read_unique_short_oid, which iterates over all the backends to
find and read the unique object matching the given oid prefix.
Added a git_object_lookup_short_oid method to find the unique object in
the repository matching a given oid prefix : it generalizes git_object_lookup
which now does nothing but calls git_object_lookup_short_oid.
2011-06-01 23:40:41 +02:00
Marc Pegon
53c0bd81a2
Added error for ambiguous oid prefixes. Added methods to compare the first nth hexadecimal characters (i.e. packets of 4 bits) of OIDs.
2011-06-01 23:40:41 +02:00
Marc Pegon
ecd6fdf1f7
Added a read_unique_short_oid method to backends, to make it possible to find objects from sha1 prefixes in the future. Default implementations throw GIT_ENOTIMPLEMENTED for strict prefixes (i.e. length < GIT_OID_HEXSZ).
2011-06-01 23:40:41 +02:00
Vicent Martí
50b7334e51
Merge pull request #206 from nulltoken/topic/is-bare
...
Add git_repository_is_bare() accessor
2011-06-01 09:58:21 -07:00
Vicent Marti
f7e59c4dcf
index: Change the memory management for repo indexes
...
The `git_repository_index` call now returns a brand new index that must
be manually free'd.
2011-06-01 18:54:47 +02:00
Vicent Marti
ef5ffed39a
object: Update documentation
2011-06-01 18:45:23 +02:00
David Glesser
23123151e0
Set the oid when a tag already exists.
...
When a tag already exists, it can be useful to directly have the oid
of the existed tag, just after trying to add it.
2011-05-30 09:03:55 +02:00