Re: [RFC/PATCH] update-index: Add a --refresh-only option to refresh specified files.

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

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

> Makes me wonder why it is not like:
>
> 	$ git update-index --refresh Documentation/
>
> That is:
>
>  - why a new option?

It was to avoid breaking backwards compatibility, since passing files
with --refresh currently has a different meaning. But if you think we
can change that, then sure, it would be much nicer.

>  - why not a pathspec or glob, similar to what ls-files gets?

I'm not sure, would this really belong in update-index since it
currently always requires explicit pathnames?  Or should it be in a
higher-level command like git-add --refresh?

-- 
Alexandre Julliard
julliard@xxxxxxxxxx
-
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