On 08/05, Junio C Hamano wrote:
Thomas Gummerer t.gumme...@gmail.com writes:
+static struct directory_entry *read_directories_v5(unsigned int
*dir_offset,
+ unsigned int *dir_table_offset,
+ void *mmap,
+
Thomas Gummerer t.gumme...@gmail.com writes:
+ name = (char *)mmap + *dir_offset;
+ beginning = mmap + *dir_table_offset;
Notice how you computed name with pointer arithmetic by first
casting mmap (which is void *) and when computing beginning, you
forgot to cast mmap and attempted
On 08/08, Junio C Hamano wrote:
Thomas Gummerer t.gumme...@gmail.com writes:
+name = (char *)mmap + *dir_offset;
+beginning = mmap + *dir_table_offset;
Notice how you computed name with pointer arithmetic by first
casting mmap (which is void *) and when computing
Make git read the index file version 5 without complaining.
This version of the reader doesn't read neither the cache-tree
nor the resolve undo data, but doesn't choke on an index that
includes such data.
Helped-by: Thomas Rast tr...@student.ethz.ch
Signed-off-by: Thomas Gummerer
4 matches
Mail list logo