[darcs-users] darcs feature request --- quick addition to boring file
Eric Kow
kowey at darcs.net
Mon Dec 1 08:35:46 UTC 2008
On Sun, Nov 30, 2008 at 18:22:48 -0500, Norman Ramsey wrote:
> What I would consider reasonable is that there be a
>
> darcs getpref
>
> to balance darcs setpref. It's a fundamental principle of design that
> when you offer an interface that mutates state, you should also offer
> a way to observe that state.
That's quite a fair request, one which I *think* the show repo command
fulfills.
> > Does darcs show repo | grep boringfile help?
>
> Not hardly:
>
> : nr at yorkie 699 ; darcs show repo
> Type: darcs
> Format: darcs-1.0
> Root: /home/nr/cs/40/www/solutions/um
> Pristine: PlainPristine "_darcs/pristine"
> Cache: thisrepo:/home/nr/cs/40/www/solutions/um
> Num Patches: 88
> : nr at yorkie 700 ; darcs -v
> 2.0.2 (release)
Ah, my understanding here is that show repo does not print out any
prefs which are unset, which makes me think than an (unfortunately
more elaborate) way to go might be:
(darcs show repo | grep boringfile) || echo _darcs/prefs/boring
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20081201/a78a06b6/attachment.pgp
More information about the darcs-users
mailing list