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
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
fac43c54a6
Allow compilation as C++
2012-12-06 19:41:52 -08:00
Russell Belfer
32770c52a8
Fix diff header comments and missing const
...
Based on the recent work to wrap diff in objective-git, this
includes a fix for a missing const and a number of clarifications
of the documentation.
2012-12-05 13:56:32 -08:00
Vicent Martí
e05ca13f1f
Merge pull request #1115 from ben/struct-versions
...
Version info for public structs
2012-12-05 11:47:19 -08:00
Ben Straub
de70aea6b1
Remove GIT_SIGNATURE_VERSION and friends
2012-12-03 12:41:50 -08:00
Ben Straub
2da619abde
Remove GIT_CRED_VERSION and friends
2012-12-03 12:41:38 -08:00
nulltoken
cc1466264a
revparse: Deploy EINVALIDSPEC usage
2012-12-01 08:34:31 +01:00
nulltoken
bc05f30c47
object: refine git_object_peel() error report
2012-12-01 08:34:29 +01:00
nulltoken
621730383a
branch: Deploy EINVALIDSPEC usage
2012-12-01 08:34:28 +01:00
nulltoken
18d6f12040
tag: Deploy EINVALIDSPEC usage
2012-12-01 08:34:28 +01:00
nulltoken
80212ecb1c
reflog: Deploy EINVALIDSPEC usage
2012-12-01 08:34:27 +01:00
nulltoken
80d9d1df14
refs: Deploy EINVALIDSPEC usage
2012-12-01 08:34:26 +01:00
nulltoken
032ba9e4ad
remote: deploy EINVALIDSPEC usage
2012-12-01 08:34:23 +01:00
nulltoken
8b50935a69
errors: Introduce EINVALIDSPEC error code
2012-12-01 08:34:22 +01:00
Ben Straub
7bcfbe16c5
Make constant name all-caps
2012-11-30 20:35:01 -08:00
Ben Straub
9267ff586f
Deploy GIT_REMOTE_CALLBACKS_INIT
2012-11-30 13:12:15 -08:00
Ben Straub
2f8d30becb
Deploy GIT_DIFF_OPTIONS_INIT
2012-11-30 13:12:14 -08:00
Ben Straub
f4fc9fdba0
Cleanup nitpicky things
2012-11-30 13:12:10 -08:00
Ben Straub
bde336ea51
Add version fields and init macros for public input structs.
2012-11-30 12:55:45 -08:00
Russell Belfer
f684970a10
Merge pull request #1108 from libgit2/ahead-behind-count
...
Add API to calculate ahead/behind count
2012-11-29 22:53:34 -08:00
Vicent Martí
f1e5c506b2
Merge pull request #1110 from libgit2/features/push_rebased
...
Push! By schu, phkelley, and congyiwu
2012-11-29 12:18:05 -08:00
Philip Kelley
ac22d08f2f
Remove git_object_oid2type
2012-11-29 08:22:15 -05:00
Vicent Martí
e2934db2c7
Merge pull request #1090 from arrbee/ignore-invalid-by-default
...
Ignore invalid entries by default
2012-11-29 02:05:46 -08:00
Scott J. Goldman
0984c8768d
Rename git_count_ahead_behind -> git_graph_ahead_behind
...
Moved it into graph.{c,h} which i created for the new "graph"
functions namespace. Also adjusted the function prototype
to use `size_t` and `const git_oid *`.
2012-11-28 18:54:57 -08:00
Scott J. Goldman
bff53e5405
Add initial implementation of ahead-behind count
2012-11-28 18:54:56 -08:00
Philip Kelley
613d5eb939
Push! By schu, phkelley, and congyiwu, et al
2012-11-28 11:42:37 -05:00
Vicent Marti
9507a434c6
odb: Add git_odb_add_disk_alternate
...
Loads a disk alternate by path to the ODB. Mimics the
`GIT_ALTERNATE_OBJECT_DIRECTORIES` shell var.
2012-11-28 10:47:10 +01:00
Russell Belfer
ca94e031fa
Various minor commenting fixes
2012-11-27 15:28:48 -08:00
Russell Belfer
c3fb7d04ed
Make git_odb_foreach_cb take const param
...
This makes the first OID param of the ODB callback a const pointer
and also propogates that change all the way to the backends.
2012-11-27 15:00:49 -08:00
Russell Belfer
f984d97b22
Clarify git_message_prettify comments
2012-11-27 15:00:28 -08:00
Russell Belfer
2bd5998c9c
Remove git_note_data structure
2012-11-27 14:47:39 -08:00
Ben Straub
336d1275ca
API updates for transport.h
2012-11-27 14:18:51 -08:00
Ben Straub
f4a62c306d
Typedef enums.
2012-11-27 14:13:03 -08:00
Ben Straub
1d8ec670be
API updates for stash.h
2012-11-27 14:06:56 -08:00
Ben Straub
ff6b5ac97d
API updates for signature.h
2012-11-27 14:03:53 -08:00
Ben Straub
44d9f2cb60
API updates for revwalk.h
2012-11-27 14:01:24 -08:00
Ben Straub
c9fc4a6ff9
API updates for repository.h
2012-11-27 13:44:49 -08:00
Ben Straub
df705148ec
API updates for remote.h
...
Includes typedef for git_direction, and renames for
GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
2012-11-27 13:19:49 -08:00
Ben Straub
74f9132212
API updates for oid.h
2012-11-27 13:18:30 -08:00
Ben Straub
0ed67c1cb4
API updates for odb_backend.h
2012-11-27 13:18:30 -08:00
Ben Straub
2e76b5fc84
API updates for odb.h
2012-11-27 13:18:30 -08:00
Ben Straub
de5596bfd6
API updates for notes.h/c.
2012-11-27 13:18:30 -08:00
Ben Straub
05a3ab61c2
API updates for net.h
2012-11-27 13:18:29 -08:00
Ben Straub
fe55f1631c
API updates for message.h
2012-11-27 13:18:29 -08:00
Ben Straub
eac7695683
Format/documentation tweaks for merge.h
2012-11-27 13:18:29 -08:00
Ben Straub
839c5f574f
API updates for indexer.h
2012-11-27 13:18:29 -08:00
Russell Belfer
a8122b5d4a
Fix warnings on Win64 build
2012-11-27 13:18:29 -08:00
Russell Belfer
d574de0e6e
API updates for status.h
2012-11-27 13:18:29 -08:00
Russell Belfer
9daf240053
Fixing up some comments in strarray.h
2012-11-27 13:18:29 -08:00
Russell Belfer
16248ee2d1
Fix up some missing consts in tree & index
...
This fixes some missed places where we can apply const-ness to
various public APIs.
There are still some index and tree APIs that cannot take const
pointers because we sort our `git_vectors` lazily and so we can't
reliably bsearch the index and tree content without applying a
`git_vector_sort()` first.
This also fixes some missed places where size_t can be used and
where const can be applied to a couple internal functions.
2012-11-27 13:18:29 -08:00
Ben Straub
f45d51ff8e
API updates for index.h
2012-11-27 13:18:28 -08:00
Russell Belfer
d9023dbe0c
API updates for tag.h
2012-11-27 13:18:28 -08:00
Russell Belfer
9cd423583f
API updates for submodule.h
2012-11-27 13:18:28 -08:00
Russell Belfer
793c438559
Update diff callback param order
...
This makes the diff functions that take callbacks both take
the payload parameter after the callback function pointers and
pass the payload as the last argument to the callback function
instead of the first. This should make them consistent with
other callbacks across the API.
2012-11-27 13:18:28 -08:00
Ben Straub
54b2a37ac7
Clean up config.h
2012-11-27 13:18:28 -08:00
Russell Belfer
eecc805029
Update callback fn ptr for git_reference_foreach
...
As part of API review, use a typedef for the callback fn ptr.
2012-11-27 13:18:28 -08:00
Russell Belfer
e120123e36
API review / update for tree.h
2012-11-27 13:18:28 -08:00
Russell Belfer
824cb2d5e5
Updates to reset.h
2012-11-27 13:18:28 -08:00
Vicent Marti
cfbe4be3fb
More external API cleanup
...
Conflicts:
src/branch.c
tests-clar/refs/branches/create.c
2012-11-27 13:18:27 -08:00
Ben Straub
2508cc66eb
Rename ref and reflog apis for consistency
2012-11-27 13:17:45 -08:00
Russell Belfer
02df42ddbf
Set up default internal ignores
...
This adds "." ".." and ".git" to the internal ignores list by
default - asking about paths with these files will always say
that they are ignored.
2012-11-19 16:33:30 -08:00
nulltoken
b15df1d937
reflog: make entry_byindex() and drop() git compliant
...
Passing 0 as the index now retrieves the most recent entry instead
of the oldest one.
2012-11-17 18:30:35 -08:00
nulltoken
1a764476d2
reflog: Fix documentation
2012-11-17 18:30:34 -08:00
nulltoken
270160b91a
config: Opening a nonexistent file returns ENOTFOUND
2012-11-17 18:30:34 -08:00
nulltoken
d36451c9d4
config: Make git_config_file__ondisk() internal
2012-11-17 12:34:15 -08:00
nulltoken
6091457e76
repo: ensure is_empty() checks there are no refs
2012-11-17 07:20:08 -08:00
nulltoken
aa8a76eff9
tag: rename git_tag_type to git_tag_target_type
2012-11-17 05:41:20 -08:00
Vicent Martí
4a0c7f56ab
Merge pull request #1074 from edubart/ignore_diff_filemode
...
Add option to ignore file mode in diffs
2012-11-15 10:31:11 -08:00
Eduardo Bart
c0d5acf69a
Add option to ignore file mode in diffs
2012-11-15 14:59:39 -02:00
Russell Belfer
bbe6dbec81
Add explicit git_index ptr to diff and checkout
...
A number of diff APIs and the `git_checkout_index` API take a
`git_repository` object an operate on the index. This updates
them to take a `git_index` pointer explicitly and only fall back
on the `git_repository` index if the index input is NULL. This
makes it easier to operate on a temporary index.
2012-11-14 23:29:48 -08:00
Russell Belfer
5735bf5e6a
Fix diff API to better parameter order
...
The diff API is not in the parameter order one would expect from
other libgit2 APIs. This fixes that.
2012-11-14 22:54:31 -08:00
Vicent Martí
aa1c3b588e
Merge pull request #1016 from arrbee/fix-checkout-dir-removal
...
Update checkout with new strategies & behavior
2012-11-13 14:13:47 -08:00
Carlos Martín Nieto
3ee078c0f7
config: rename get_config_entry -> config_entry
...
We're already in the git_config namespace, there is no need to repeat
it.
2012-11-13 13:46:17 -08:00
Edward Thomson
7ebefd22e7
move hash library func ptrs to global global
2012-11-13 10:23:05 -06:00
nulltoken
b1a3a70ed1
repository: Refine repository_head() error report
2012-11-12 00:14:51 +01:00
Edward Thomson
b0f6e45d14
create FETCH_HEAD specially instead of as a ref file
2012-11-11 11:56:33 -06:00
Vicent Martí
d18713fb4a
Merge pull request #1056 from nulltoken/duplicate-tree-entries
...
Duplicate tree entries
2012-11-10 20:24:53 -08:00
Russell Belfer
0f3def715d
Fix various cross-platform build issues
...
This fixes a number of warnings and problems with cross-platform
builds. Among other things, it's not safe to name a member of a
structure "strcmp" because that may be #defined.
2012-11-09 13:52:07 -08:00
Russell Belfer
ad9a921b92
Rework checkout with new strategy options
...
This is a major reworking of checkout strategy options. The
checkout code is now sensitive to the contents of the HEAD tree
and the new options allow you to update the working tree so that
it will match the index content only when it previously matched
the contents of the HEAD. This allows you to, for example, to
distinguish between removing files that are in the HEAD but not
in the index, vs just removing all untracked files.
Because of various corner cases that arise, etc., this required
some additional capabilities in rmdir and other utility functions.
This includes the beginnings of an implementation of code to read
a partial tree into the index based on a pathspec, but that is
not enabled because of the possibility of creating conflicting
index entries.
2012-11-09 13:52:07 -08:00
nulltoken
f92bcaea49
index: prevent tree creation from a non merged state
...
Fix libgit2/libgit2sharp#243
2012-11-09 16:45:47 +01:00
Brian Schroeder
b0b8065880
Update documentation in remote.h
2012-11-08 21:28:15 -08:00
nulltoken
7cc1bf0fcb
index: Introduce git_index_has_conflicts()
2012-11-08 21:16:48 +01:00
Philip Kelley
9d64128325
Merge pull request #1048 from pwkelley/basic_auth
...
Basic authentication for http and winhttp
2012-11-08 08:06:23 -08:00
Philip Kelley
091361f569
Basic authentication for http and winhttp
2012-11-06 08:52:03 -05:00
Edward Thomson
09cc0b92dc
create callback to handle packs from fetch, move the indexer to odb_pack
2012-11-05 16:00:29 -06:00
Vicent Martí
942a76983b
Merge pull request #1034 from carlosmn/packbuilder-foreach
...
Let the user grab the packfile as it's being written
2012-11-05 06:54:34 -08:00
Vicent Martí
1362a98316
Merge pull request #1014 from arrbee/diff-rename-detection
...
Initial implementation of diff rename detection
2012-11-02 10:00:28 -07:00
Vicent Martí
d13da328e2
Merge pull request #1038 from arrbee/doc-fixes
...
Improve docs, examples, warnings
2012-11-01 14:18:40 -07:00
Russell Belfer
b90500f03d
Improve docs, examples, warnings
...
This improves docs in some of the public header files, cleans
up and improves some of the example code, and fixes a couple
of pedantic warnings in places.
2012-11-01 14:08:30 -07:00
Vicent Marti
1e808f9cda
index: Add git_index_new
2012-11-01 20:28:28 +01:00
Vicent Marti
276ea401b3
index: Add git_index_write_tree
2012-11-01 20:17:10 +01:00
Vicent Martí
7ae73e94db
Merge pull request #1030 from pwkelley/transports
...
Reorganize transport architecture
2012-11-01 09:15:29 -07:00
Philip Kelley
41fb1ca0ec
Reorganize transport architecture (squashed 3)
2012-11-01 09:02:33 -04:00
Carlos Martín Nieto
b4b935d8ab
packbuilder: add accessors for the number of total and written objects
2012-11-01 06:21:49 +01:00
Carlos Martín Nieto
3dfed9cb86
packbuilder: add git_packbuilder_foreach
...
Let the user get each object as a buffer+size pair so they can handle
the packfile content as they need to.
2012-11-01 06:21:49 +01:00