Vicent Marti
28c1451a7c
tree: Fix name lookups once and for all
...
Double-pass binary search. Jeez.
2011-10-20 02:40:14 +02:00
Vicent Marti
8cf2de078d
tree: Fix lookups by entry name
2011-10-19 01:34:42 +02:00
nulltoken
3fa735ca3b
tree: Add git_tree_frompath() which, given a relative path to a tree entry, retrieves the tree object containing this tree entry
2011-10-13 23:30:07 +02:00
nulltoken
34aff01002
oid: Add git_oid_streq() which checks if an oid and an hex formatted string are equal
2011-10-13 23:15:11 +02:00
Vicent Martí
92e2081f40
Merge pull request #449 from csware/include-win-version-information
...
Include windows version information in git2.dll
2011-10-12 11:03:58 -07:00
Sven Strickroth
96fab093e3
put version information in separate file
...
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2011-10-09 18:39:52 +02:00
Sven Strickroth
314f54eb06
fix build for x64
...
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2011-10-09 05:29:57 +02:00
Vicent Marti
dd3fd68266
msvc: Remove superfluous includes
2011-10-05 13:44:27 -07:00
Vicent Marti
c060854ed5
msvc: Properly handle inttypes.h/stdint.h
2011-10-05 16:21:16 -04:00
Carlos Martín Nieto
dc8e3096d6
Include stdint.h in git2/config.h
...
Otherwise MSVC doesn't know what we're talking about when we say
int32_t or int64_t.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-10-01 02:09:35 +02:00
Vicent Marti
fafd471021
config: Proper type declarations for 64 bit ints
2011-09-30 16:08:41 +02:00
Carlos Martín Nieto
c36280a036
repository: export git_repository_config_autoload
...
Take the opportunity to finish the comment about this function.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-09-30 06:28:22 +02:00
Vicent Marti
8af4d074cc
odb: Let users decide compression level for the loose ODB
2011-09-29 15:34:17 +02:00
Carlos Martín Nieto
40fe5fbea8
Make repo config loading automatic or completely explicit
...
git_repository_config wants to take the global and system paths again
so that one can be explicit if needed.
The git_repository_config_autoload function is provided for the cases
when it's good enough for the library to guess where those files are
located.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-09-27 14:40:56 +02:00
Carlos Martín Nieto
4c562347ae
Add git_config_find_system
...
This allows the library to guess where the system configuration file
should be located.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-09-27 14:39:38 +02:00
nulltoken
ad196c6ae6
config: make git_config_[get|set]_long() able to properly deal with 8 bytes wide values
...
Should fix issue #419 .
Signed-off-by: nulltoken <emeric.fermas@gmail.com>
2011-09-22 18:58:47 +02:00
Vicent Martí
6640266e5a
Merge pull request #398 from carlosmn/config-autohome
...
git_repository_config: open global config file automatically
2011-09-18 19:58:22 -07:00
Vicent Martí
e311519dce
Merge pull request #411 from boyski/gcc4
...
Don't use '__attribute__ visibility' with gcc unless it's at version 4 or better
2011-09-18 19:38:14 -07:00
David Boyce
d2a1861ea1
Don't use '__attribute__ visibility' with gcc unless it's at
...
version 4 or better.
2011-09-18 21:27:25 -04:00
Vicent Marti
87d9869fc3
Tabify everything
...
There were quite a few places were spaces were being used instead of
tabs. Try to catch them all. This should hopefully not break anything.
Except for `git blame`. Oh well.
2011-09-19 03:34:49 +03:00
Vicent Marti
bb742ede3d
Cleanup legal data
...
1. The license header is technically not valid if it doesn't have a
copyright signature.
2. The COPYING file has been updated with the different licenses used in
the project.
3. The full GPLv2 header in each file annoys me.
2011-09-19 01:54:32 +03:00
nulltoken
56453d3468
status: enhance determination of status for a single file
...
- fix retrieval of a file status when working against a newly initialized repository
- reduce memory pressure
- prevents a directory from being tested
2011-09-15 01:14:36 +02:00
nulltoken
3601c4bfce
repository: Add git_repository_head()
2011-09-15 01:13:50 +02:00
David Boyce
d911172255
Standardized doxygen @return lines for int functions to say "GIT_SUCCESS or an error code".
2011-09-13 12:30:25 -04:00
Carlos Martín Nieto
f9d4b0c395
git_repository_config: open global config file automatically
...
If the global configuration file is missing, it is ignored.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-09-12 17:25:46 +02:00
Sebastian Schuberth
26e74c6ace
Fix some random size_t vs. int conversion warnings
2011-09-08 17:07:37 +02:00
Carlos Martín Nieto
778e1c739b
Add git_remote_new
...
As we no longer expose the transport functions, this is now the only
way to connect to a remote when given an URL instead of a remote name
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-30 19:37:14 +02:00
Carlos Martín Nieto
b5a8aa94bf
Don't hide the transport details
...
Transports shouldn't get used outside of the library, so don't expose
accessor functions.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-30 19:37:14 +02:00
Carlos Martín Nieto
a1be77cd35
Be smarter about selecting wants
...
There is no need to inspect what the local repository is like. Only
check whether the objects exist locally.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:09 +02:00
Carlos Martín Nieto
1564db11fe
Remove enum git_whn
...
Instead, use flags inside the git_remote_head structure.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:09 +02:00
Carlos Martín Nieto
441f57c2b7
Add git_remote_update_tips
...
This function updates the references in the local reference storage to
match the ones in the remote.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:08 +02:00
Carlos Martín Nieto
48a65a071d
Only wait for pack if we need it
...
Provide the git_remote_download function to instruct the library to
downlad the packfile and let the user know the temporary location.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:08 +02:00
Carlos Martín Nieto
e1d8803068
Don't expose the fetch code to the user
...
Move the generation of the want-list to be done from the negotiate
function, and keep the filtered references inside the remote
structure.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:08 +02:00
Carlos Martín Nieto
65fbc48a17
negotiation
2011-08-18 02:34:07 +02:00
Carlos Martín Nieto
e1f4a76150
Add git_fetch_list_want which creates the "want" list
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-18 02:34:07 +02:00
schu
e7be57a98b
reflog: assimilate reflog API to return git_oid's
...
Rather than returning the OIDs out of the reflog as string return them
as git_oid.
Signed-off-by: schu <schu-github@schulog.org>
2011-08-15 21:14:51 +02:00
Lambert CLARA
a6bbb8cab6
Add missing GIT_BEGIN_DECL and GIT_END_DECL to indexer header
2011-08-13 10:56:33 +02:00
Vicent Marti
5ae2f0c013
commit: Add support for Encoding header
2011-08-12 16:24:19 -07:00
Vicent Marti
b2e60e4eb5
Add common.h to types.h
2011-08-10 15:25:37 -07:00
Vicent Martí
31bf5f3857
Merge pull request #345 from carlosmn/gsoc2011/indexer
...
Implement a pack indexer
2011-08-03 18:59:30 -07:00
schu
63396a3998
signature: adjust API to return error codes
...
git_signature_new() and git_signature_now() currently don't return error
codes. Change the API to return error codes and not pointers to let the
user handle errors properly.
Signed-off-by: schu <schu-github@schulog.org>
2011-08-03 16:05:32 +02:00
Carlos Martín Nieto
65cb1586c4
Document the indexer calls
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-03 14:02:49 +02:00
Carlos Martín Nieto
48b3ad4f15
Move pack index writing to a public function
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-03 14:02:49 +02:00
Carlos Martín Nieto
b7c44096ae
Implement the indexer
...
Only v2 index files are supported.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-03 14:02:41 +02:00
Carlos Martín Nieto
ab525a7463
Rename stuff to git_indexer_
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-02 21:41:33 +02:00
Carlos Martín Nieto
f23c4a66bd
Start the runner
...
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-08-02 21:41:05 +02:00
Carlos Martín Nieto
3412391d4c
Intial indexer code
2011-08-02 21:41:02 +02:00
Marcel Groothuis
ede21113a2
Fix compilation in C++: remove double GIT_BEGIN_DECL
2011-07-29 19:31:39 +02:00
Carlos Martín Nieto
1e76676fb4
Fixup network headers
...
The network headers were still missing some formalities.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
2011-07-27 01:22:50 +02:00
Johan 't Hart
136e7129d7
On some header files, GIT_END_DECL was absent while GIT_BEGIN_DECL wasn't.
2011-07-27 00:06:19 +02:00