Re: [PATCH 6/8] archive: use index instead of parsing tree directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nguyễn Thái Ngọc Duy  <pclouds@xxxxxxxxx> writes:

> Currently:
>
>  - "git archive" parses trees directly
>  - attr mechanism does not support in-tree attributes
>
> Making attr.c support in-tree attributes is quite a non-trivial task,
> IMHO. Instead this patch makes "git archive" read tree to index first,
> then start exporting from there.
>
> One minor regression: "git archive" now will no longer generate
> directory entries, only files.

Hmmm, if you read_tree() into the_index upfront and do not change anything
else to the archive.c code, shouldn't it work without such a regression at
all?  Am I missing something?

It would allow you to export the index into an archive, but I doubt it is
worth the amount of code churn.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]