Vicent Marti
8ff0f3250a
index: Switch to git_futils_filestamp
2012-11-01 20:17:09 +01:00
Jameson Miller
c902f5a0ff
Update of text stats calculation
...
Do not interpret 0x85 as Next Line (NEL)
char when gathering statistics for a text file.
2012-11-01 12:26:56 -04:00
Vicent Martí
7ae73e94db
Merge pull request #1030 from pwkelley/transports
...
Reorganize transport architecture
2012-11-01 09:15:29 -07:00
Philip Kelley
ff830366ea
Http: Set an error for invalid content-type
2012-11-01 12:07:42 -04:00
Philip Kelley
0ccfc63bd6
Improve consistency of WinHTTP request headers
2012-11-01 10:29:30 -04:00
Philip Kelley
41fb1ca0ec
Reorganize transport architecture (squashed 3)
2012-11-01 09:02:33 -04:00
Vicent Marti
003808b38c
Merge branch 'config-refresh' into development
2012-10-31 20:52:16 +01:00
Vicent Marti
c1f61af66b
I LIKE THESE NAMES
2012-10-31 20:52:01 +01:00
Russell Belfer
c8b511f3cd
Better naming for file timestamp/size checker
2012-10-31 11:26:12 -07:00
Ben Straub
a9db123b09
Checkout: remove duplicate 100% progress report
2012-10-31 10:14:13 -07:00
Ben Straub
c48e87006c
Ensure that non-error is not propagated
2012-10-31 10:13:57 -07:00
Russell Belfer
744cc03e2b
Add git_config_refresh() API to reload config
...
This adds a new API that allows users to reload the config if the
file has changed on disk. A new config callback function to
refresh the config was added.
The modified time and file size are used to test if the file needs
to be reloaded (and are now stored in the disk backend object).
In writing tests, just using mtime was a problem / race, so I
wanted to check file size as well. To support that, I extended
`git_futils_readbuffer_updated` to optionally check file size in
addition to mtime, and I added a new function `git_filebuf_stats`
to fetch the mtime and size for an open filebuf (so that the
config could be easily refreshed after a write).
Lastly, I moved some similar file checking code for attributes
into filebuf. It is still only being used for attrs, but it
seems potentially reusable, so I thought I'd move it over.
2012-10-30 12:11:23 -07: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