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
Ben Straub
c4958e6818
Fix documentation comment
2012-10-24 12:38:05 -07:00
Michael Schubert
6f6b0c013c
tests-clar/repo: remove unused variable
2012-10-24 15:42:09 +02:00
Ignacio Casal Quinteiro
4bc252e4ec
Fix example in comment
2012-10-24 15:00:56 +02:00
Scott J. Goldman
308581de9e
Fix Makefile.embed to build src/sha1/*.c
2012-10-23 18:18:19 -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
Russell Belfer
5b67d145d8
Merge pull request #923 from yorah/topic/config-store
...
Add git_config_level support when handling config files
2012-10-23 09:53:15 -07:00
Ben Straub
c70ad945cd
Update doc strings, warn about callback perf
2012-10-23 09:23:44 -07: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
f36fb761dc
tests: more git_repository_head_detached() coverage
2012-10-22 19:46:00 +02:00
nulltoken
c436ed26e0
reset: make git_reset() cope with an orphaned HEAD
2012-10-22 19:46:00 +02:00
Vicent Martí
0e19840800
Merge pull request #1008 from nulltoken/fix/chunked_blob
...
blob: do not create temp files in the current path
2012-10-22 10:39:40 -07: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
nulltoken
cd1ef82253
test: extract make_head_orphaned() logic
2012-10-20 12:07:53 +02:00
nulltoken
209e34fa70
tests: leverage git_repository_detach_head()
2012-10-20 12:01:04 +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
cd001bbbfe
Fix from rebase
2012-10-19 19:37:47 -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
Ben Straub
7bcd9e23e8
gitno_buffer: callback on each packet
...
The fetch code takes advantage of this to implement a
progress callback every 100kb of transfer.
2012-10-19 19:36:23 -07:00
Ben Straub
25e8b20169
Fix broken tests
2012-10-19 19:36:23 -07:00
Ben Straub
909f626541
Indexing progress now goes to 100%
2012-10-19 19:36:23 -07:00
Ben Straub
45b60d7b8d
Correct progress reporting from checkout
2012-10-19 19:36:22 -07:00
Ben Straub
30a46ab1a9
Adjust for rebase
2012-10-19 19:36:22 -07:00
Ben Straub
aa1e86741d
Clone: in-line callbacks for progress
...
Also implemented in the git2 example.
2012-10-19 19:36:22 -07:00
Ben Straub
9c3a98f1b0
Fix clone.c's indentation
2012-10-19 19:36:22 -07:00
Ben Straub
7635a1188a
Fix example compilation
2012-10-19 19:36:22 -07:00
Ben Straub
216863c48f
Fetch/indexer: progress callbacks
2012-10-19 19:36:22 -07:00
nulltoken
0ae81fc479
index: remove read_tree() progress indicator
...
git_index_read_tree() was exposing a parameter to provide the user with
a progress indicator. Unfortunately, due to the recursive nature of the
tree walk, the maximum number of items to process was unknown. Thus,
the indicator was only counting processed entries, without providing
any information how the number of remaining items.
2012-10-19 19:36:22 -07:00
Ben Straub
2b7efe0340
Example: compile fixes (not yet working)
2012-10-19 19:36:22 -07:00
Ben Straub
1f7c741873
Remove dead code
2012-10-19 19:36:22 -07:00
Ben Straub
183d8bddeb
Remove checkout_stats from git_clone
2012-10-19 19:36:22 -07:00
Ben Straub
806426565f
Convert checkout_* to use progress callback
2012-10-19 19:36:21 -07:00
Ben Straub
2c8bbb27d9
Convert checkout_index to use progress callback
2012-10-19 19:34:15 -07:00
Ben Straub
d57c47dc07
Add accessor for git_remote's stats field
...
Also converted the network example to use it.
2012-10-19 19:34:15 -07:00
Ben Straub
3028be0723
Add git_indexer_stats field to git_remote
...
Also removing all the *stats parameters from external
APIs that don't need them anymore.
2012-10-19 19:34:14 -07:00
Ben Straub
92f91b0e3b
Clone: fix indentation
2012-10-19 19:34:14 -07:00
Vicent Martí
c497a63bd6
Merge pull request #1001 from veeti/build-fixes
...
Changes to CMake for packaging
2012-10-19 17:06:51 -07:00
Philip Kelley
11c2a9c67d
Merge pull request #1003 from arrbee/fix-test-core-env
...
Fix env variable tests with new Win32 path rules
2012-10-19 17:06:07 -07:00
Veeti Paananen
88e0fc05d6
Remove backwards compatibility for INSTALL_LIB
2012-10-20 02:59:40 +03:00
Veeti Paananen
291f712292
Let environment CFLAGS override the debug flags
2012-10-20 02:57:02 +03:00
Veeti Paananen
9795a40f88
Use standard CMake variable names for installation paths
...
Rename INSTALL_INC and INSTALL_BIN to INCLUDE_INSTALL_DIR and
BIN_INSTALL_DIR, which are more commonly used. This is also
consistent with the variable for the library path which is
already LIB_INSTALL_DIR.
2012-10-20 02:56:35 +03:00
Russell Belfer
0d422ec9c2
Fix env variable tests with new Win32 path rules
...
The new Win32 global path search was not working with the
environment variable tests. But when I fixed the test, the new
codes use of getenv() was causing more failures (presumably because
of caching on Windows ???). This fixes the global file lookup to
always go directly to the Win32 API in a predictable way.
2012-10-19 15:40:43 -07:00
Vicent Marti
875b16eb54
repository: Typo
2012-10-19 23:44:49 +02:00
Vicent Martí
cf028856bc
Merge pull request #1000 from nulltoken/error/GIT_EORPHANEDHEAD
...
Add error GIT_EORPHANEDHEAD
2012-10-19 14:43:09 -07:00
Russell Belfer
4fec465bd3
Merge pull request #1002 from tnm/patch-1
...
Update README because vmg is @vmg.
2012-10-19 14:17:26 -07:00