libgit2/examples
Michael Schubert 42ea35c061 remote: don't free transport on disconnect
Currently, git_remote_disconnect not only closes the connection but also
frees the underlying transport object, making it impossible to write
code like

	// fetch stuff
	git_remote_download()

	// close connection
	git_remote_disconnect()

	// call user provided callback for each ref
	git_remote_update_tips(remote, callback)

because remote->refs points to references owned by the transport object.
This means, we have an idling connection while running the callback for
each reference.

Instead, allow immediate disconnect and free the transport later in
git_remote_free().
2012-05-02 01:06:49 +02:00
..
network remote: don't free transport on disconnect 2012-05-02 01:06:49 +02:00
.gitignore update examples content to be compilable and up to date 2011-06-15 09:40:06 -07:00
diff.c Update diff to use iterators 2012-03-02 15:49:29 -08:00
general.c examples: use git_repository_odb instead of _database 2012-01-13 18:20:13 +01:00
Makefile Continue implementation of git-diff 2012-03-02 15:49:29 -08:00
showindex.c update examples content to be compilable and up to date 2011-06-15 09:40:06 -07:00