git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git status / ls-files

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Jul 8, 2010, 10:06 UTC
Message-ID
<4C35A31E.2040800@drmicha.warpmail.net>
In-Reply-To
<AANLkTikdA7CEY19bYHIxIsPezaZZo-SrEaSupi2UoRNS@mail.gmail.com>
Mahesh Vaidya venit, vidit, dixit 07.07.2010 22:31:
Show 16 quoted lines
> Hi
> 
> Is there a query command which I can run on my workspace which will
> give output of following style. (in the same that of command
> git merge foo  givesO
> 
> I have examined git-lsfiles ; git log ; git-status didn't get output
> in following style
> 
> 
> Auto-merging nv/aaad/aaad_utils.c
> Auto-merging nv/aaad/include/aaad_session_private.h
> CONFLICT (content): Merge conflict in nv/aaad/include/aaad_session_private.h
> Auto-merging nv/aaad/test/session_authen_test.c
> CONFLICT (content): Merge conflict in nv/aaad/test/session_authen_test.c
> 

You can get this info only by attempting a merge, but you an avoid the merge commit with

git merge --no-commit
So, maybe "git merge --no-commit foo; git reset --hard"?

Or do you want that info (again) right after a failed merge, during the conflict resolution?

Michael
Previous: Mahesh Vaidya
Message 2 of 2 in “git status / ls-files”
  1. Mahesh VaidyaJul 7, 2010
  2. Michael J GruberJul 8, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.