git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* How to detect if a tree is in status "merge"?
@ 2019-12-08 10:55 Olaf Hering
  2019-12-09 21:04 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Olaf Hering @ 2019-12-08 10:55 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

Is there a way to detect (from a script) if the current working tree is in state 'merge'?

Right now I had the case that a conflict resolution resulted in 'no pending changes'. As a result my "git --no-pager status --porcelain --untracked-files=no | tee $t" showed nothing, which skipped the required 'git commit' in my script.

Thanks,
Olaf

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-10 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-08 10:55 How to detect if a tree is in status "merge"? Olaf Hering
2019-12-09 21:04 ` Junio C Hamano
2019-12-10  9:55   ` Olaf Hering

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).