]> git.proxmox.com Git - libgit2.git/log
libgit2.git
11 years agoMerge pull request #1055 from ethomson/sha1_win32
Vicent Martí [Tue, 13 Nov 2012 21:28:08 +0000 (13:28 -0800)]
Merge pull request #1055 from ethomson/sha1_win32

Win32 CryptoAPI and CNG support for SHA1

11 years agoMerge pull request #1064 from libgit2/http-parser-2
Vicent Martí [Tue, 13 Nov 2012 21:26:04 +0000 (13:26 -0800)]
Merge pull request #1064 from libgit2/http-parser-2

Bump the builtin http-parser to v2.0

11 years agofilebuf now has a git_hash_ctx instead of a ctx*
Edward Thomson [Tue, 13 Nov 2012 20:57:35 +0000 (14:57 -0600)]
filebuf now has a git_hash_ctx instead of a ctx*

11 years agounload dll / destroy hash ctxs at shutdown
Edward Thomson [Tue, 13 Nov 2012 20:48:10 +0000 (14:48 -0600)]
unload dll / destroy hash ctxs at shutdown

11 years agomove hash library func ptrs to global global
Edward Thomson [Tue, 13 Nov 2012 16:10:40 +0000 (10:10 -0600)]
move hash library func ptrs to global global

11 years agoRemove git_hash_ctx_new - callers now _ctx_init()
Edward Thomson [Tue, 13 Nov 2012 01:22:49 +0000 (19:22 -0600)]
Remove git_hash_ctx_new - callers now _ctx_init()

11 years agoWin32 CryptoAPI and CNG support for SHA1
Edward Thomson [Mon, 5 Nov 2012 18:37:15 +0000 (12:37 -0600)]
Win32 CryptoAPI and CNG support for SHA1

11 years agoMerge pull request #1065 from nulltoken/fix/memory-leak
Ben Straub [Tue, 13 Nov 2012 13:45:08 +0000 (05:45 -0800)]
Merge pull request #1065 from nulltoken/fix/memory-leak

Fix memory leaks

11 years agoRemove unused variables
Michael Schubert [Tue, 13 Nov 2012 13:28:44 +0000 (14:28 +0100)]
Remove unused variables

11 years agotest: fix memory leak
nulltoken [Tue, 13 Nov 2012 06:11:24 +0000 (07:11 +0100)]
test: fix memory leak

11 years agolocal: fix memory leak
nulltoken [Tue, 13 Nov 2012 06:04:30 +0000 (07:04 +0100)]
local: fix memory leak

11 years agoBump the builtin http-parser
Vicent Marti [Mon, 12 Nov 2012 23:42:03 +0000 (15:42 -0800)]
Bump the builtin http-parser

11 years agoclar-helpers: Oops, grab pointer
Vicent Marti [Mon, 12 Nov 2012 23:38:28 +0000 (15:38 -0800)]
clar-helpers: Oops, grab pointer

11 years agoMerge remote-tracking branch 'ben/local-transport' into development
Vicent Marti [Mon, 12 Nov 2012 22:23:17 +0000 (14:23 -0800)]
Merge remote-tracking branch 'ben/local-transport' into development

11 years agoMerge pull request #1061 from nulltoken/topic/explicit-head-errors
Vicent Martí [Mon, 12 Nov 2012 22:12:41 +0000 (14:12 -0800)]
Merge pull request #1061 from nulltoken/topic/explicit-head-errors

repository: Refine repository_head() error report

11 years agoRemove unnecessary progress logic
Ben Straub [Mon, 12 Nov 2012 15:57:03 +0000 (07:57 -0800)]
Remove unnecessary progress logic

The indexer handles this better than the fetch
logic does.

11 years agoFix error check
Ben Straub [Mon, 12 Nov 2012 15:55:09 +0000 (07:55 -0800)]
Fix error check

11 years agorepository: Refine repository_head() error report
nulltoken [Sun, 11 Nov 2012 23:14:51 +0000 (00:14 +0100)]
repository: Refine repository_head() error report

11 years agoFix compilation warning
nulltoken [Sun, 11 Nov 2012 22:52:37 +0000 (23:52 +0100)]
Fix compilation warning

11 years agoMerge pull request #1010 from ethomson/fetch_head
Edward Thomson [Sun, 11 Nov 2012 18:01:11 +0000 (10:01 -0800)]
Merge pull request #1010 from ethomson/fetch_head

create FETCH_HEAD specially instead of as a ref file

11 years agocreate FETCH_HEAD specially instead of as a ref file
Edward Thomson [Thu, 1 Nov 2012 20:47:18 +0000 (15:47 -0500)]
create FETCH_HEAD specially instead of as a ref file

11 years agoMerge pull request #1056 from nulltoken/duplicate-tree-entries
Vicent Martí [Sun, 11 Nov 2012 04:24:53 +0000 (20:24 -0800)]
Merge pull request #1056 from nulltoken/duplicate-tree-entries

Duplicate tree entries

11 years agoMerge pull request #1060 from nulltoken/topic/explicit-index-errors
Vicent Martí [Sun, 11 Nov 2012 04:24:23 +0000 (20:24 -0800)]
Merge pull request #1060 from nulltoken/topic/explicit-index-errors

Topic/explicit index errors

11 years agoindex: prefer INDEX_OWNER usage
nulltoken [Sat, 10 Nov 2012 20:10:49 +0000 (21:10 +0100)]
index: prefer INDEX_OWNER usage

11 years agoindex: refine add_from_workdir() error report
nulltoken [Sat, 10 Nov 2012 20:01:05 +0000 (21:01 +0100)]
index: refine add_from_workdir() error report

11 years agoindex: make git_index_new() work with a NULL path
nulltoken [Sat, 10 Nov 2012 19:42:45 +0000 (20:42 +0100)]
index: make git_index_new() work with a NULL path

11 years agotests: Add missing assertions
nulltoken [Sat, 10 Nov 2012 15:43:05 +0000 (16:43 +0100)]
tests: Add missing assertions

11 years agoHelpers for local-filesystem remote URLs
Ben Straub [Sat, 10 Nov 2012 00:59:46 +0000 (16:59 -0800)]
Helpers for local-filesystem remote URLs

11 years agoMerge pull request #1058 from pwkelley/development
Vicent Martí [Fri, 9 Nov 2012 21:19:32 +0000 (13:19 -0800)]
Merge pull request #1058 from pwkelley/development

Fixes for two segfaults

11 years agoMerge pull request #1059 from nulltoken/fix/config-open-level
Vicent Martí [Fri, 9 Nov 2012 21:15:57 +0000 (13:15 -0800)]
Merge pull request #1059 from nulltoken/fix/config-open-level

config: make git_config_open_level() work with an empty config

11 years agoFix a mutex/critical section leak
Philip Kelley [Fri, 9 Nov 2012 20:57:32 +0000 (15:57 -0500)]
Fix a mutex/critical section leak

11 years agoconfig: make git_config_open_level() work with an empty config
nulltoken [Fri, 9 Nov 2012 20:49:50 +0000 (21:49 +0100)]
config: make git_config_open_level() work with an empty config

11 years agoFix uninitialized memory in winhttp subtransport on 64-bit
Philip Kelley [Fri, 9 Nov 2012 20:39:25 +0000 (15:39 -0500)]
Fix uninitialized memory in winhttp subtransport on 64-bit

11 years agoFix implementation of strndup to not overrun
Philip Kelley [Fri, 9 Nov 2012 20:39:10 +0000 (15:39 -0500)]
Fix implementation of strndup to not overrun

11 years agoAvoid copying duplicate commits
Ben Straub [Fri, 9 Nov 2012 05:29:17 +0000 (21:29 -0800)]
Avoid copying duplicate commits

11 years agoLocal fetch: add tests
Ben Straub [Fri, 9 Nov 2012 04:18:19 +0000 (20:18 -0800)]
Local fetch: add tests

11 years agoImplement local transport's fetch
Ben Straub [Tue, 6 Nov 2012 18:26:06 +0000 (10:26 -0800)]
Implement local transport's fetch

11 years agoindex: prevent tree creation from a non merged state
nulltoken [Thu, 8 Nov 2012 16:39:23 +0000 (17:39 +0100)]
index: prevent tree creation from a non merged state

Fix libgit2/libgit2sharp#243

11 years agoMerge pull request #1052 from delanne/invalid_read
Vicent Martí [Fri, 9 Nov 2012 14:16:44 +0000 (06:16 -0800)]
Merge pull request #1052 from delanne/invalid_read

Valgrind reports Invalid Read when the configuration file contains some empty line

11 years agoMerge pull request #1057 from bts/patch-1
Vicent Martí [Fri, 9 Nov 2012 14:15:37 +0000 (06:15 -0800)]
Merge pull request #1057 from bts/patch-1

Update documentation in remote.h

11 years agoUpdate documentation in remote.h
Brian Schroeder [Fri, 9 Nov 2012 05:28:15 +0000 (21:28 -0800)]
Update documentation in remote.h

11 years agoindex: Introduce git_index_has_conflicts()
nulltoken [Thu, 8 Nov 2012 20:08:59 +0000 (21:08 +0100)]
index: Introduce git_index_has_conflicts()

11 years agotree: enforce coverage of silent entry replacement
nulltoken [Thu, 8 Nov 2012 16:37:01 +0000 (17:37 +0100)]
tree: enforce coverage of silent entry replacement

11 years agoMerge pull request #1048 from pwkelley/basic_auth
Philip Kelley [Thu, 8 Nov 2012 16:06:23 +0000 (08:06 -0800)]
Merge pull request #1048 from pwkelley/basic_auth

Basic authentication for http and winhttp

11 years ago- Update 'tests-clar/resources/config/config11' in order to reproduce the invalidread...
delanne [Thu, 8 Nov 2012 11:28:21 +0000 (12:28 +0100)]
- Update 'tests-clar/resources/config/config11' in order to reproduce the invalidread with the unittest (just added some \n at the end of the file)
- Fix config_file.c

11 years agoMerge pull request #1039 from erikvanzijst/erik/tag_without_message
Vicent Martí [Thu, 8 Nov 2012 00:30:55 +0000 (16:30 -0800)]
Merge pull request #1039 from erikvanzijst/erik/tag_without_message

Correctly parse tags lacking a description

11 years agoMerge pull request #1050 from edubart/development
Ben Straub [Wed, 7 Nov 2012 20:58:54 +0000 (12:58 -0800)]
Merge pull request #1050 from edubart/development

Fix compilation for mingw32 and cygwin

11 years agoMove inet_pton to posix platform-compatibility layer
Eduardo Bart [Wed, 7 Nov 2012 18:10:57 +0000 (16:10 -0200)]
Move inet_pton to posix platform-compatibility layer

11 years agoFix compilation for mingw32 and cygwin
Eduardo Bart [Tue, 6 Nov 2012 22:16:53 +0000 (20:16 -0200)]
Fix compilation for mingw32 and cygwin

inet_pton is available only in windows vista or later,
fixed the issue by reimplementing it using WSAStringToAddress

11 years agoDon't store no_check_cert; fetch it on demand
Philip Kelley [Tue, 6 Nov 2012 16:27:23 +0000 (11:27 -0500)]
Don't store no_check_cert; fetch it on demand

11 years agoMerge pull request #1025 from ethomson/fetchodb
Philip Kelley [Tue, 6 Nov 2012 15:32:29 +0000 (07:32 -0800)]
Merge pull request #1025 from ethomson/fetchodb

fetch: Write packs to the ODB instead of directly to disk

11 years agoFix connection leak in http subtransport
Philip Kelley [Tue, 6 Nov 2012 14:36:04 +0000 (09:36 -0500)]
Fix connection leak in http subtransport

11 years agoBasic authentication for http and winhttp
Philip Kelley [Tue, 6 Nov 2012 13:52:03 +0000 (08:52 -0500)]
Basic authentication for http and winhttp

11 years agocreate callback to handle packs from fetch, move the indexer to odb_pack
Edward Thomson [Mon, 5 Nov 2012 17:33:10 +0000 (11:33 -0600)]
create callback to handle packs from fetch, move the indexer to odb_pack

11 years agoMerge pull request #1046 from libgit2/empty-remote-url-crash
Russell Belfer [Mon, 5 Nov 2012 19:06:50 +0000 (11:06 -0800)]
Merge pull request #1046 from libgit2/empty-remote-url-crash

Bail out of remote loading if the URL would be NULL

11 years ago'geterr' -> 'giterr'
Justin Spahr-Summers [Mon, 5 Nov 2012 19:01:00 +0000 (11:01 -0800)]
'geterr' -> 'giterr'

11 years agoRevert "Don't expect the 'empty-remote-url' remote to be listed"
Justin Spahr-Summers [Mon, 5 Nov 2012 18:58:08 +0000 (10:58 -0800)]
Revert "Don't expect the 'empty-remote-url' remote to be listed"

Apparently git_remote_list() includes even remotes for which git_remote_load() would fail. Sorry @nulltoken, false alarm.

This reverts commit f358ec143c8c9952227d31cd21c24f8c9be23d3c.

11 years agoDon't expect the 'empty-remote-url' remote to be listed
Justin Spahr-Summers [Mon, 5 Nov 2012 18:45:26 +0000 (10:45 -0800)]
Don't expect the 'empty-remote-url' remote to be listed

CC @nulltoken

11 years agoTest for GITERR_INVALID
Justin Spahr-Summers [Mon, 5 Nov 2012 18:44:48 +0000 (10:44 -0800)]
Test for GITERR_INVALID

11 years agoMerge pull request #1044 from dahlbyk/repo/state
Russell Belfer [Mon, 5 Nov 2012 18:44:21 +0000 (10:44 -0800)]
Merge pull request #1044 from dahlbyk/repo/state

Fix state when HEAD is not detached

11 years agoSet GITERR_INVALID when encountering a NULL remote URL
Justin Spahr-Summers [Mon, 5 Nov 2012 18:42:10 +0000 (10:42 -0800)]
Set GITERR_INVALID when encountering a NULL remote URL

11 years agoMerge pull request #1034 from carlosmn/packbuilder-foreach
Vicent Martí [Mon, 5 Nov 2012 14:54:34 +0000 (06:54 -0800)]
Merge pull request #1034 from carlosmn/packbuilder-foreach

Let the user grab the packfile as it's being written

11 years agoremote: Add malformed remote load test
nulltoken [Mon, 5 Nov 2012 06:49:37 +0000 (07:49 +0100)]
remote: Add malformed remote load test

11 years agoBail out if remote->url would be NULL
Justin Spahr-Summers [Mon, 5 Nov 2012 06:01:24 +0000 (22:01 -0800)]
Bail out if remote->url would be NULL

This fixes a crash from attempting to invoke git__strdup() against NULL.

11 years agoFix Clar link
Keith Dahlby [Mon, 5 Nov 2012 03:24:14 +0000 (21:24 -0600)]
Fix Clar link

11 years agorepo: fix state when HEAD is not detached
Keith Dahlby [Sun, 4 Nov 2012 18:13:42 +0000 (12:13 -0600)]
repo: fix state when HEAD is not detached

11 years agoMerge pull request #1042 from pwkelley/progress_cb
Philip Kelley [Fri, 2 Nov 2012 18:42:45 +0000 (11:42 -0700)]
Merge pull request #1042 from pwkelley/progress_cb

Fix bytes_received in fetch tests - we weren't calling the callback

11 years agoFix bytes_received in fetch tests - we weren't calling the callback
Philip Kelley [Fri, 2 Nov 2012 18:34:06 +0000 (14:34 -0400)]
Fix bytes_received in fetch tests - we weren't calling the callback

11 years agoMove error capture to top of giterr_set
Russell Belfer [Fri, 2 Nov 2012 17:42:20 +0000 (10:42 -0700)]
Move error capture to top of giterr_set

11 years agotags: Fixed the tag parser to correctly treat the message field as optional.
Erik van Zijst [Fri, 2 Nov 2012 17:28:17 +0000 (10:28 -0700)]
tags: Fixed the tag parser to correctly treat the message field as optional.

This fix makes libgit2 capable of parsing annotated tag objects that lack
the optional message/description field.
Previously, libgit2 treated this field as mandatory and raised a tag_error on
such tags. However, the message field is optional.

An example of such a tag is refs/tags/v2.6.16.31-rc1 in Linux:

$ git cat-file tag refs/tags/v2.6.16.31-rc1
object afaa018cefb6af63befef1df7d8febaae904434f
type commit
tag v2.6.16.31-rc1
tagger Adrian Bunk <bunk@stusta.de> 1162716505 +0100
$

11 years agoMerge pull request #1014 from arrbee/diff-rename-detection
Vicent Martí [Fri, 2 Nov 2012 17:00:28 +0000 (10:00 -0700)]
Merge pull request #1014 from arrbee/diff-rename-detection

Initial implementation of diff rename detection

11 years agoMerge pull request #1040 from ethomson/index_refactor
Philip Kelley [Fri, 2 Nov 2012 15:43:17 +0000 (08:43 -0700)]
Merge pull request #1040 from ethomson/index_refactor

Free conflict index entries on removal

11 years agoMerge pull request #1041 from pwkelley/transports
Philip Kelley [Fri, 2 Nov 2012 15:40:09 +0000 (08:40 -0700)]
Merge pull request #1041 from pwkelley/transports

Prefer GetLastError() for GITERR_OS on Win32

11 years agoPrefer GetLastError() for GITERR_OS on Win32
Philip Kelley [Fri, 2 Nov 2012 15:30:55 +0000 (11:30 -0400)]
Prefer GetLastError() for GITERR_OS on Win32

11 years agofreeing index entries would be helpful
Edward Thomson [Fri, 2 Nov 2012 06:01:21 +0000 (01:01 -0500)]
freeing index entries would be helpful

11 years agoLEAAAVE ME ALOOOONEEE
Vicent Marti [Thu, 1 Nov 2012 22:01:24 +0000 (23:01 +0100)]
LEAAAVE ME ALOOOONEEE

11 years agoMerge pull request #1038 from arrbee/doc-fixes
Vicent Martí [Thu, 1 Nov 2012 21:18:40 +0000 (14:18 -0700)]
Merge pull request #1038 from arrbee/doc-fixes

Improve docs, examples, warnings

11 years agoMerge pull request #1037 from libgit2/index-open-cleanup
Russell Belfer [Thu, 1 Nov 2012 21:16:19 +0000 (14:16 -0700)]
Merge pull request #1037 from libgit2/index-open-cleanup

Some more changes to the Index API

11 years agoImprove docs, examples, warnings
Russell Belfer [Thu, 1 Nov 2012 21:08:30 +0000 (14:08 -0700)]
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.

11 years agoindex: Add `git_index_new`
Vicent Marti [Thu, 1 Nov 2012 19:28:28 +0000 (20:28 +0100)]
index: Add `git_index_new`

11 years agoindex: Fix tests
Vicent Marti [Thu, 1 Nov 2012 19:24:43 +0000 (20:24 +0100)]
index: Fix tests

11 years agoindex: Add git_index_write_tree
Vicent Marti [Thu, 1 Nov 2012 19:15:53 +0000 (20:15 +0100)]
index: Add git_index_write_tree

11 years agoindex: Switch to git_futils_filestamp
Vicent Marti [Wed, 31 Oct 2012 21:26:57 +0000 (22:26 +0100)]
index: Switch to git_futils_filestamp

11 years agoHide deprecations on MacOS
Russell Belfer [Thu, 1 Nov 2012 17:57:14 +0000 (10:57 -0700)]
Hide deprecations on MacOS

Why Apple, why?

11 years agoMerge pull request #1036 from jamill/text_stat
Russell Belfer [Thu, 1 Nov 2012 17:14:04 +0000 (10:14 -0700)]
Merge pull request #1036 from jamill/text_stat

Update of text stats calculation

11 years agoUpdate of text stats calculation
Jameson Miller [Thu, 1 Nov 2012 16:11:24 +0000 (12:11 -0400)]
Update of text stats calculation

Do not interpret 0x85 as Next Line (NEL)
char when gathering statistics for a text file.

11 years agoMerge pull request #1030 from pwkelley/transports
Vicent Martí [Thu, 1 Nov 2012 16:15:29 +0000 (09:15 -0700)]
Merge pull request #1030 from pwkelley/transports

Reorganize transport architecture

11 years agoHttp: Set an error for invalid content-type
Philip Kelley [Thu, 1 Nov 2012 16:07:42 +0000 (12:07 -0400)]
Http: Set an error for invalid content-type

11 years agoFix a bug in cl_setenv on Windows XP
Philip Kelley [Thu, 1 Nov 2012 15:50:08 +0000 (11:50 -0400)]
Fix a bug in cl_setenv on Windows XP

11 years agoImprove consistency of WinHTTP request headers
Philip Kelley [Thu, 1 Nov 2012 14:29:30 +0000 (10:29 -0400)]
Improve consistency of WinHTTP request headers

11 years agoReorganize transport architecture (squashed 3)
Philip Kelley [Mon, 29 Oct 2012 17:41:14 +0000 (13:41 -0400)]
Reorganize transport architecture (squashed 3)

11 years agopackbuilder: add accessors for the number of total and written objects
Carlos Martín Nieto [Wed, 31 Oct 2012 09:43:08 +0000 (10:43 +0100)]
packbuilder: add accessors for the number of total and written objects

11 years agopackbuilder: add git_packbuilder_foreach
Carlos Martín Nieto [Wed, 31 Oct 2012 09:26:04 +0000 (10:26 +0100)]
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.

11 years agoMerge branch 'config-refresh' into development
Vicent Marti [Wed, 31 Oct 2012 19:52:16 +0000 (20:52 +0100)]
Merge branch 'config-refresh' into development

11 years agoI LIKE THESE NAMES
Vicent Marti [Wed, 31 Oct 2012 19:52:01 +0000 (20:52 +0100)]
I LIKE THESE NAMES

11 years agoBetter naming for file timestamp/size checker
Russell Belfer [Wed, 31 Oct 2012 18:26:12 +0000 (11:26 -0700)]
Better naming for file timestamp/size checker

11 years agoCheckout: remove duplicate 100% progress report
Ben Straub [Wed, 31 Oct 2012 17:14:13 +0000 (10:14 -0700)]
Checkout: remove duplicate 100% progress report

11 years agoEnsure that non-error is not propagated
Ben Straub [Wed, 31 Oct 2012 17:13:57 +0000 (10:13 -0700)]
Ensure that non-error is not propagated

11 years agoAdd git_config_refresh() API to reload config
Russell Belfer [Tue, 30 Oct 2012 19:10:36 +0000 (12:10 -0700)]
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.

11 years agoMerge pull request #1017 from arrbee/diff-patch-to-str
Vicent Martí [Tue, 30 Oct 2012 19:04:28 +0000 (12:04 -0700)]
Merge pull request #1017 from arrbee/diff-patch-to-str

Add git_diff_patch_to_str API