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
Vicent Martí
efde422553
Merge pull request #1017 from arrbee/diff-patch-to-str
...
Add git_diff_patch_to_str API
2012-10-30 12:04:28 -07:00
Vicent Martí
c4a9ded0f9
Merge pull request #1026 from nulltoken/repo/state
...
repo: enhance git_repository_state() detection
2012-10-30 12:03:22 -07:00
Vicent Martí
6c21358a89
Merge pull request #1029 from ethomson/index_refactor
...
Index changes
2012-10-30 11:51:58 -07:00
Michael Schubert
6cfbbf7e32
Fix a couple of warnings
2012-10-30 18:50:59 +01:00
Edward Thomson
f45ec1a076
index refactoring
2012-10-29 20:04:21 -05:00
Ben Straub
81eecc342b
Fetch: don't clobber received count
...
This memset was being reached after the entire packfile under
WinHttp, so the byte count was being lost for small repos.
2012-10-29 13:34:14 -07:00
Vicent Martí
8a1479a55a
Merge pull request #796 from nulltoken/topic/git-stash
...
Stash
2012-10-29 12:57:04 -07:00
nulltoken
31966d20e3
repo: enhance git_repository_state() detection
2012-10-27 16:45:59 +02:00
Ben Straub
a0ce87c51c
Add network transfer callbacks on Windows
2012-10-26 13:43:13 -07:00
nulltoken
e4c64cf2aa
stash: add git_stash_drop()
2012-10-26 22:11:15 +02:00
nulltoken
233884131d
stash: add git_stash_foreach()
2012-10-26 22:11:09 +02:00
nulltoken
590fb68be0
stash: add git_stash_save()
2012-10-26 22:10:48 +02:00
nulltoken
4ea0a0ca05
refs: add GIT_REFS_STASH_FILE define
2012-10-26 21:02:05 +02:00
nulltoken
b1be9dd0e5
index: introduce git_index_owner()
2012-10-26 21:02:04 +02:00
nulltoken
1f87fa3595
reflog: fix bogus removal of reflog entries
2012-10-26 21:02:01 +02:00
nulltoken
27e3c58392
reflog: create reflog and its directory structure
2012-10-26 21:02:00 +02:00
nulltoken
d2aa6de722
reflog: Make git_reflog_free() accept null param
2012-10-26 21:02:00 +02:00
Russell Belfer
cb7180a6e2
Add git_diff_patch_print
...
This adds a `git_diff_patch_print()` API which is more like the
existing API to "print" a patch from an entire `git_diff_list`
but operates on a single `git_diff_patch` object.
Also, it rewrites the `git_diff_patch_to_str()` API to use that
function (making it very small).
2012-10-25 11:48:39 -07:00
Russell Belfer
3943dc78a5
Check errors while generating diff patch string
2012-10-25 11:12:56 -07:00
Russell Belfer
1b9346897b
Merge pull request #925 from nulltoken/topic/moving-branch-updates-config
...
Updates config upon moving and deletion of branches
2012-10-25 10:55:03 -07:00
Vicent Marti
505f37b41a
config: Only dereference value on success
2012-10-25 19:22:35 +02:00
Ben Straub
67dad09bdb
Remove inline hint
2012-10-25 09:59:49 -07:00
Ben Straub
1fc375e6ef
Fix Windows build
...
Pedantic ordering of GIT_UNUSED vs. variable declarations.
2012-10-25 09:02:55 -07:00
nulltoken
fcccf3045f
remote: introduce git_remote_rename()
2012-10-25 17:42:36 +02:00
nulltoken
3a14d3e2bc
buf: introduce git_buf_splice()
2012-10-25 17:42:35 +02:00
nulltoken
fb39b3a54c
refspec: introduce git_refspec__serialize()
2012-10-25 17:42:34 +02:00
nulltoken
4fe5520a10
remote: remove some code duplication
2012-10-25 17:42:33 +02:00
nulltoken
e497b16c57
remote: prevent from saving a nameless remote
2012-10-25 17:42:33 +02:00
nulltoken
aba7078177
config: introduce git_config_rename_section()
2012-10-25 17:42:32 +02:00
nulltoken
383f164a09
branch: rename config section upon moving
2012-10-25 17:42:31 +02:00
nulltoken
0b98a8a424
branch: remove config section upon deletion
2012-10-25 17:42:31 +02:00
Vicent Martí
1eb8cd7f87
Merge pull request #990 from ben/clone-callbacks
...
Progress callbacks
2012-10-25 08:16:13 -07:00
Russell Belfer
93cf7bb8e2
Add git_diff_patch_to_str API
...
This adds an API to generate a complete single-file patch text
from a git_diff_patch object.
2012-10-24 20:56:32 -07:00
Edward Thomson
03bdb2addd
GIT_EUNMERGED
2012-10-24 20:24:37 -05:00
Edward Thomson
632d8b230b
reset changes for merge
2012-10-24 20:24:37 -05:00
Ben Straub
1e3b8ed5cf
Remove 'bytes' param from git_remote_download
2012-10-24 14:07:07 -07:00
Ben Straub
7d222e1312
Network progress: rename things
...
git_indexer_stats and friends -> git_transfer_progress*
Also made git_transfer_progress members more sanely
named.
2012-10-24 13:29:14 -07:00
Vicent Martí
81e7b10a15
Merge pull request #1012 from carlosmn/libcrypto-sha
...
Use libcrypto's SHA-1 implementation when linking to it
2012-10-23 13:43:28 -07:00
Carlos Martín Nieto
7205a4d94c
Use libcrypto's SHA-1 implementation when linking to it
...
libcryto's SHA-1 implementation is measurably better than the one that
ships with the library. If we link to it for HTTPS support already,
use that implementation instead.
Testing on a ~600MB of the linux repository, this reduces indexing
time by 40% and removes the hashing from the top spot in the perf
output.
2012-10-23 20:30:16 +02:00
yorah
a1abe66aca
Add config level support in the config API
...
Added `struct git_config_entry`: a git_config_entry contains the key, the value, and the config file level from which a config element was found.
Added `git_config_open_level`: build a single-level focused config object from a multi-level one.
We are now storing `git_config_entry`s in the khash of the config_file
2012-10-23 12:48:38 +02:00
yorah
f8ede94808
Fix adding variable to config file with no trailing newline
...
This can occur after a manual modification of a config file.
2012-10-23 11:48:50 +02:00
Vicent Martí
8a89aa1f57
Merge pull request #963 from carlosmn/remote-save-autotag
...
Save the autotag configuration for remotes
2012-10-22 12:04:48 -07:00
Vicent Martí
40846f3d9a
Merge pull request #1004 from nulltoken/error/GIT_EORPHANEDHEAD
...
More orphaned head love
2012-10-22 10:51:43 -07:00
nulltoken
c436ed26e0
reset: make git_reset() cope with an orphaned HEAD
2012-10-22 19:46:00 +02:00
nulltoken
cfa6465cc4
blob: do not create temp files in the current path
...
- make sure temporary streamed blobs are created under the
.git/objects folder and not in the current path, whatever it is.
- do not make the name of the temp file depend on the hintpath.
2012-10-22 15:08:09 +02:00
Ben Straub
2dae54a941
Improve clone sample's formatting
2012-10-19 20:24:15 -07:00
Ben Straub
9c05c17b7a
Checkout progress now reports completed/total steps
2012-10-19 20:05:18 -07:00
Ben Straub
63afb005e8
Remove third stage from checkout progress reporting
...
Also, now only reporting checkout progress for files that
are actually being added or removed.
2012-10-19 19:36:23 -07:00