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

Re: [PATCH 0/5] Revamping "git status"

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 5, 2009, 16:57 UTC
Message-ID
<7vbpmub3la.fsf@alter.siamese.dyndns.org>
In-Reply-To
<200908051149.40980.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
Show 11 quoted lines
> I also tried finding out which exact commit was causing this, but 4/5
> still segfaults and 1-3 don't even compile:
>
>   builtin-commit.c: In function ‘show_unmerged’:                                  
>   builtin-commit.c:827: error: dereferencing pointer to incomplete type           
>   builtin-commit.c: In function ‘show_status’:                                    
>   builtin-commit.c:854: error: dereferencing pointer to incomplete type
>   [etc]
>
> These are referring to use of a 'struct wt_status_change_data *', but
> the struct declaration is only in 4/5.  Am I missing something?
I suspect you have a botched patch application.

The result of applying up to [PATCH 3/5] does not even have show_unmerged/show_status in builtin-commit.c. These two functions are introduced by [PATCH 5/5] to implement shortstatus.

I've applied what came back on the list on top of 07a4a3b (Fix typos on pt_BR/gittutorial.txt translation, 2009-07-31) and all five states compile just fine.

    $ git rev-list 07a4a3b.. |
      while read sha1
      do
            git rev-parse $sha1^{tree}
      done
    86363b25b84041cf14110dcc3136f56915778f71
    4625f5bbc43e1158d00aca8b2356047606c0babd
    895698143b2c29af8bfe0cdf6c3f57de3bf080d8
    3c565041ba6e432ff9064a1d8302f49ef33c2605
    c0c2b9c2a55e3df9cce448d59e5d557d07d78a4b
Previous: Thomas RastNext: Thomas Rast
Message 16 of 22 in “Revamping "git status"”
  1. 0/5 Revamping "git status"Junio C Hamano, Aug 5, 2009
  2. 1/5 diff-index: report unmerged new entriesJunio C Hamano, Aug 5, 2009
  3. 2/5 diff-index: keep the original index intactJunio C Hamano, Aug 5, 2009
  4. 3/5 wt-status.c: rework the way changes to the index and work tree are summarizedJunio C Hamano, Aug 5, 2009
  5. 4/5 status: show worktree status of conflicted paths separatelyJunio C Hamano, Aug 5, 2009
  6. 5/5 shortstatus: a new commandJunio C Hamano, Aug 5, 2009
  7. Jeff KingAug 6, 2009
  8. Breaking "git status" (was Re: [PATCH 5/5] shortstatus: a new command)Junio C Hamano, Aug 6, 2009
  9. Jeff KingAug 6, 2009
  10. Junio C HamanoAug 6, 2009
  11. Sverre RabbelierAug 6, 2009
  12. Jeff KingAug 6, 2009
  13. Jeff KingAug 6, 2009
  14. Junio C HamanoAug 6, 2009
  15. Thomas RastAug 5, 2009
  16. Junio C HamanoAug 5, 2009
  17. Thomas RastAug 5, 2009
  18. Thomas RastAug 5, 2009
  19. Junio C HamanoAug 5, 2009
  20. Thomas RastAug 5, 2009
  21. Junio C HamanoAug 5, 2009
  22. Thomas RastAug 5, 2009

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.