1. 25 Jul, 2011 10 commits
    • posix: declare 'buf' argument of p_write() as const · 2ba222c5
      Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
      Kirill A. Shutemov committed
    • odb_pack: fix cast warnings · 03cdbab4
      /home/kas/git/public/libgit2/src/odb_pack.c: In function ‘packfile_sort__cb’:
      /home/kas/git/public/libgit2/src/odb_pack.c:702:24: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:703:24: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c: In function ‘nth_packed_object_offset’:
      /home/kas/git/public/libgit2/src/odb_pack.c:944:10: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:944:10: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:944:10: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:948:9: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:948:9: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:948:9: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:952:22: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:952:22: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:952:22: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:953:8: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:953:8: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/odb_pack.c:953:8: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      
      Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
      Kirill A. Shutemov committed
    • sha1: fix cast warnings · 4414b355
      /home/kas/git/public/libgit2/src/sha1.c: In function ‘blk_SHA1_Block’:
      /home/kas/git/public/libgit2/src/sha1.c:128:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:128:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:128:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:129:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:129:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:129:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:130:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:130:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:130:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:131:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:131:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:131:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:132:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:132:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:132:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:133:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:133:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:133:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:134:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:134:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:134:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:135:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:135:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:135:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:136:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:136:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:136:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:137:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:137:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:137:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:138:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:138:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:138:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:139:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:139:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:139:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:140:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:140:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:140:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:141:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:141:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:141:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:142:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:142:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:142:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:143:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:143:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/sha1.c:143:2: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      
      Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
      Kirill A. Shutemov committed
    • revwalk: fix cast warning · 803ca5cb
      /home/kas/git/public/libgit2/src/revwalk.c: In function ‘object_table_hash’:
      /home/kas/git/public/libgit2/src/revwalk.c:120:7: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      
      Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
      Kirill A. Shutemov committed
    • transport_local: fix cast warnings · ba1de1af
      home/kas/git/public/libgit2/src/transport_local.c: In function ‘cmp_refs’:
      /home/kas/git/public/libgit2/src/transport_local.c:19:22: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/transport_local.c:20:22: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      
      Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
      Kirill A. Shutemov committed
    • reflog: fix cast warning · b42a7f01
      /home/kas/git/public/libgit2/src/reflog.c: In function ‘reflog_parse’:
      /home/kas/git/public/libgit2/src/reflog.c:148:17: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      
      Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
      Kirill A. Shutemov committed
    • commit: fix cast warnings · 14468c6b
      /home/kas/git/public/libgit2/src/commit.c: In function ‘commit_parse_buffer’:
      /home/kas/git/public/libgit2/src/commit.c:186:23: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      /home/kas/git/public/libgit2/src/commit.c:187:27: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
      
      Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
      Kirill A. Shutemov committed
    • Merge pull request #336 from schu/cleanup · 269beb47
      repository.c: remove obsolete TODO marker
      Vicent Martí committed
    • Merge pull request #337 from belkiss/development · 738715eb
      Modify struct definition to enable forward declare with C++ compiler, thus avoid including C library's header in C++ header.
      Vicent Martí committed
    • Modify struct definition to enable forward declare with C++ compiler, · ac2351fd
      thus avoid including C library's header in C++ header.
      Lambert CLARA committed
  2. 24 Jul, 2011 1 commit
  3. 22 Jul, 2011 3 commits
  4. 20 Jul, 2011 1 commit
  5. 19 Jul, 2011 2 commits
    • index: fix memory leak · 26b1b157
      We need really free vectors on index freeing, not only clear.
      
      Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
      Kirill A. Shutemov committed
    • refs: fix memory leak on rename · 5c6ae009
      Current implementation of git_reference_rename() removes 'ref' from
      loose cache, but not frees it. In result 'ref' is not reachable any more
      and we have got memory leak.
      
      Let's re-add 'ref' with corrected name to loose cache instead of
      'new_ref' and free 'new_ref' properly.
      
      'rollback' path seems leak too. git_reference_rename() need to be rewritten
      for proper resource management.
      
      Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
      Kirill A. Shutemov committed
  6. 17 Jul, 2011 2 commits
  7. 14 Jul, 2011 5 commits
    • Merge pull request #326 from nulltoken/ntk/fix/extern-tag-lightweight · 33afca47
      tag: Make git_tag_create_lightweight() accessible to bindings
      Vicent Martí committed
    • libgit2 v0.14.0, "watermelon wheat" · 52e50c1a
      This a very packed minor release. The usual guilty parties have been
      working harder than usual during the holidays -- thanks to everyone
      involved!
      
      As always, the updated API docs can be found at:
      
      	http://libgit2.github.com/libgit2/
      
      NEW FEATURES:
      
      	- New OS abstraction layer. This should make all POSIX calls much
      	more reliable under Windows.
      
      	- Much faster writes of simple objects (commits, tags, trees) to the
      	ODB via in-memory buffering and direct writes, instead of streaming.
      
      	- Unified & simplified API for object creation. All the `create`
      	methods now take Objects instead of OIDs to ensure that corrupted
      	(dangling) objects cannot be created on the repository.
      
      	- Fully Git-compilant reference renaming (finally!), with
      	the already existing `git_reference_rename`.
      
      	- Deletion of config keys with `git_config_delete`
      
      	- Greatly improved index performance when adding new entries
      
      	- Reflog support with the `git_reflog` API
      
      	- Remotes support with the `git_remote` API
      
      	- First parts of the Networking API, including refspecs and
      	the transport abstraction layer. (Note that there are no actual
      	transports implemented yet)
      
      	- Status support with the `git_status_foreach` and `git_status_file`
      	functions.
      
      	- Tons of bugfixes, including the outstanding bug #127 (wrong sort
      	ordering when querying tree entries).
      
      KNOWN ISSUES:
      
      	- The reference renaming code leaks memory. This is being worked on
      	as part of a reference handling overhaul.
      
      	- The tree-from-index builder has abysmal performance because it
      	doesn't handle the Treecache extension yet. This is also being
      	worked on.
      
      FULL API CHANGELOG:
      
      	- removed, * modified, + added
      
      	- git_commit_create_o
      	- git_commit_create_ov
      	- git_reference_create_oid_f
      	- git_reference_create_symbolic_f
      	- git_reference_rename_f
      	- git_tag_create_f
      	- git_tag_create_fo
      	- git_tag_create_o
      
      	* git_commit_create
      	* git_commit_create_v
      	* git_config_foreach
      	* git_reference_create_oid
      	* git_reference_create_symbolic
      	* git_reference_rename
      	* git_tag_create
      	* git_tag_create_frombuffer
      
      	+ git_clearerror
      	+ git_config_delete
      	+ git_index_uniq
      	+ git_odb_hashfile
      	+ git_oid_fromstrn
      	+ git_reflog_entry_byindex
      	+ git_reflog_entry_committer
      	+ git_reflog_entry_msg
      	+ git_reflog_entry_oidnew
      	+ git_reflog_entry_oidold
      	+ git_reflog_entrycount
      	+ git_reflog_free
      	+ git_reflog_read
      	+ git_reflog_write
      	+ git_refspec_src_match
      	+ git_refspec_transform
      	+ git_remote_connect
      	+ git_remote_fetchspec
      	+ git_remote_free
      	+ git_remote_get
      	+ git_remote_ls
      	+ git_remote_name
      	+ git_remote_url
      	+ git_repository_head_detached
      	+ git_repository_head_orphan
      	+ git_status_file
      	+ git_status_foreach
      	+ git_tag_create_lightweight
      	+ git_tag_list_match
      	+ git_transport_new
      Vicent Marti committed
    • Merge pull request #325 from carlosmn/valgrind · 324f0eec
      More memory leaks
      Vicent Martí committed
    • Merge pull request #324 from carlosmn/development · 18bdba0e
      typo: one git_remote_fetchspec should be pushspec
      Vicent Martí committed
  8. 13 Jul, 2011 14 commits
  9. 12 Jul, 2011 2 commits