Re: Call Me Gitless

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

 



Daniel Barkalow <barkalow <at> iabervon.org> writes:
> I think that having the possibility of adding an empty blob (or maybe a 
> magical "nothing currently here but git-ls-files includes it") would be 
> preferrable to a no-index mode. That is, the operation that corresponds 
> most directly to "cvs add <filename>" is "git update-index --cacheinfo 
> 100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 <filename>", which is not 
> exactly easy to do, and just because a user wants to do this doesn't mean 
> the user doesn't want to use the index; a user that makes extensive use of 
> the index is actually more likely to want the state where a file is 
> tracked but all of the content has not yet been staged.

I think it would be more natural if we had two commands for this; 'add' and
'keep/cache/stage'.  The add command would add the file not the content to the
index and the keep command would add the content.  We could then have an
auto-keep option for the add command and an auto-add option for the keep
command.  By setting both of these options they would give current behaviour for
add.

-- 
Sverre Hvammen Johansen



--
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]

  Powered by Linux