{"shas":[["3bdc0d4c8c3a51e6b338c8166d98d5b82cb01a43","633dd20bc98244b59cb09ea6c3e83a1f2f34c3e9@elegosoft.com","index.c: Read index after initialization\n\nThe current behaviour of git_index_open{bare,inrepo}() is unexpected.\nWhen an index is opened, an in-memory index object is created that is\nlinked to the index discovered by git_repository_open(). However, this\nindex object is empty, as the on-disk index is not read. To fully open\nthe on-disk index file, git_index_read() has to be called. This leads to\nconfusing behaviour. Consider the following code:\n\n\tgit_index *idx;\n\tgit_index_open_inrepo(&idx, repo);\n\tgit_index_write(idx);\n\nYou would expect this to have no effect, as the index is never\nostensibly manipulated. However, what actually happens is that the index\nentries are removed from the on-disk index because the empty in-memory\nindex object created by open_inrepo() is written back to the disk.\n\nThis patch reads the index after opening it.","Jakob Pfender"],["12f6d8e1453eacc1b4c6db0f6071541bcdf2e0e0","633dd20bc98244b59cb09ea6c3e83a1f2f34c3e9@elegosoft.com","index.h: Correct documentation for git_index_open_inrepo()\n\nFix the doxygen comments for git_index_open_inrepo(). Previously they\nreferred to a param index_path and omitted index (probably a c&p\nerror).","Jakob Pfender"],["051d6915d70e6fec597fe1bfdee2870561f523d1","633dd20bc98244b59cb09ea6c3e83a1f2f34c3e9@elegosoft.com","index.h: Fix minor typo","Jakob Pfender"],["09e8de0f38ed8f28c02e5a3fa987cbb74e98a671","6838a7c51796da15c3e6eae80ee6aba806e8818a@gmail.com","New external API method: `git_reference_listcb`\n\nList all the references in the repository, calling a custom\ncallback for each one.\n\nThe listed references may be filtered by type, or using\na bitwise OR of several types. Use the magic value\n`GIT_REF_LISTALL` to obtain all references, including\npacked ones.\n\nThe `callback` function will be called for each of the references\nin the repository, and will receive the name of the reference and\nthe `payload` value passed to this method.","Vicent Marti"],["e394dcd78cdfcedefd972f0e968954de6d398bc6","633dd20bc98244b59cb09ea6c3e83a1f2f34c3e9@elegosoft.com","Merge branch 'development' into typos","Jakob Pfender"]],"repo":"jpfender/libgit2","actor":"jpfender","ref":"refs/heads/typos","size":5,"head":"e394dcd78cdfcedefd972f0e968954de6d398bc6","actor_gravatar":"7f173948d4b682be43d5dc77b6c9b3cc","push_id":27654018}