OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Determining status of an untrusted Git repo

  • Thread starter Thread starter tbleher
  • Start date Start date
T

tbleher

Guest
I'd like to determine whether a repo is modified and which patches it contains (so essentially I'd like to run git log, git status and git diff). However, the repo is untrusted. Which commands are safe?

I think I'd need to at least pass --no-textconv and --no-ext-diff to git diff. Is this enough?

Will git status and git log (without -p) call user-defined commands?
<p>I'd like to determine whether a repo is modified and which patches it contains (so essentially I'd like to run <code>git log</code>, <code>git status</code> and <code>git diff</code>). However, the repo is untrusted. Which commands are safe?</p>
<p>I think I'd need to at least pass <code>--no-textconv</code> and <code>--no-ext-diff</code> to <code>git diff</code>. Is this enough?</p>
<p>Will <code>git status</code> and <code>git log</code> (without <code>-p</code>) call user-defined commands?</p>
Continue reading...
 

Latest posts

D
Replies
0
Views
1
Dhanushka Amarakoon
D
S
Replies
0
Views
1
Shikhar Ambashta
S
Top