* read-only mode
@ 2008-12-03 22:44 jidanni
2008-12-03 23:10 ` Miklos Vajna
2008-12-04 9:47 ` Michael J Gruber
0 siblings, 2 replies; 3+ messages in thread
From: jidanni @ 2008-12-03 22:44 UTC (permalink / raw)
To: git
Here's a documentation stub. Please fix and finish it and place in some manual.
==Using git in read-only mode==
Let's say you just want to examine things. There is a fine line
between commands and options that just examine things vs. those that
change things. One might worry that they can't remember that fine line.
Therefore the safest way to ensure you are using git in 'read-only mode' is to
* su nobody, or
* chmod -R u-w . (and remember to chmod -R u+w when you are finished), or
* ???
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: read-only mode
2008-12-03 22:44 read-only mode jidanni
@ 2008-12-03 23:10 ` Miklos Vajna
2008-12-04 9:47 ` Michael J Gruber
1 sibling, 0 replies; 3+ messages in thread
From: Miklos Vajna @ 2008-12-03 23:10 UTC (permalink / raw)
To: jidanni; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 249 bytes --]
On Thu, Dec 04, 2008 at 06:44:24AM +0800, jidanni@jidanni.org wrote:
> Here's a documentation stub. Please fix and finish it and place in some manual.
Please read and follow Documentation/SubmittingPatches if you want this
to be included.
Thanks.
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: read-only mode
2008-12-03 22:44 read-only mode jidanni
2008-12-03 23:10 ` Miklos Vajna
@ 2008-12-04 9:47 ` Michael J Gruber
1 sibling, 0 replies; 3+ messages in thread
From: Michael J Gruber @ 2008-12-04 9:47 UTC (permalink / raw)
To: jidanni; +Cc: git
jidanni@jidanni.org venit, vidit, dixit 03.12.2008 23:44:
> Here's a documentation stub. Please fix and finish it and place in some manual.
[Warning: irony ahead] Yes master, at your service!
[I'm aware he tone in the quote above may be due to translation issues.]
> ==Using git in read-only mode==
> Let's say you just want to examine things. There is a fine line
> between commands and options that just examine things vs. those that
> change things. One might worry that they can't remember that fine line.
>
> Therefore the safest way to ensure you are using git in 'read-only mode' is to
> * su nobody, or
> * chmod -R u-w . (and remember to chmod -R u+w when you are finished), or
This does change things (time stamps).
I'd say the two above are no git-specific suggestions at all, and "cp -a
.git .git-orig" is the best safety-net for the cautious (assuming a
clean working tree) when doing heavy work but overkill for inspection.
> * ???
* clone and inspect the clone instead
* use obvious read-only commands (status, log, diff, show, ls-files,
tag&branch without argument) and avoid obvious write commands (commit,
checkout, apply, ...)
Without specifying "things" any further (repo, objects, index, working
tree) I don't really understand what the problem is.
Michael
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-04 9:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-03 22:44 read-only mode jidanni
2008-12-03 23:10 ` Miklos Vajna
2008-12-04 9:47 ` Michael J Gruber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).