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

Re: [PATCH v8 0/2] Submodule object path

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 11, 2015, 01:10 UTC
Message-ID
<xmqqoah9222y.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1441922231-18270-1-git-send-email-max@max630.net>
Max Kirillov <max@max630.net> writes:
> * There are more conflicts in pu with [1], not sure
>   what should I do about it.
>
> [1] http://thread.gmane.org/gmane.comp.version-control.git/276628

I do not think conflicts got any worse than before. Between the result of merging this round and the previous one to 'pu', the only difference in path.c that conflicts with [1] I see is essentially a no-op (the diff attached at the end of this essage).

When I push the updated 'pu' out, could you please check
    $ git log --oneline --first-parent origin/master..origin/pu

to find the place your topic is merged (I am planning to make it "3af7cd6 Merge branch 'mk/submodule-gitdir-path' into pu", but please do not rely on the exact commit object name; I may have to redo the integration if I find some breakages caused by this or any other topic), and then eyeballing (call that merge $m) output of

    $ git diff $m^ $m
to see if there is anything I screwed up?
Thanks.
diff --git a/path.c b/path.c
index 776d8f0..2725bc3 100644
--- a/path.c
+++ b/path.c
@@ -466,11 +466,11 @@ static void do_submodule_path(struct strbuf *buf, const char *path,
 
 	strbuf_vaddf(buf, fmt, args);
 
-	if (get_common_dir_noenv(&git_submodule_common_dir, git_submodule_dir.buf)) {
+	if (get_common_dir_noenv(&git_submodule_common_dir, git_submodule_dir.buf))
 		update_common_dir(buf, git_submodule_dir.len, git_submodule_common_dir.buf);
-	}
 
 	strbuf_cleanup_path(buf);
+
 	strbuf_release(&git_submodule_dir);
 	strbuf_release(&git_submodule_common_dir);
 }
Previous: Max KirillovNext: Max Kirillov
Message 21 of 23 in “path: implement common_dir handling in git_path_submodule()”
  1. 0/2 path: implement common_dir handling in git_path_submodule()Max Kirillov, Mar 18, 2015
  2. 1/2 submodule refactor: use git_path_submodule() in add_submodule_odb()Max Kirillov, Mar 18, 2015
  3. 2/2 path: implement common_dir handling in git_path_submodule()Max Kirillov, Mar 18, 2015
  4. 0/2 path: implement common_dir handling in git_path_submodule()Max Kirillov, Aug 3, 2015
  5. 1/2 submodule refactor: use git_path_submodule() in add_submodule_odb()Max Kirillov, Aug 3, 2015
  6. Junio C HamanoAug 3, 2015
  7. 2/2 path: implement common_dir handling in git_path_submodule()Max Kirillov, Aug 3, 2015
  8. 0/2 path: implement common_dir handling in git_path_submodule()Max Kirillov, Aug 4, 2015
  9. 1/2 submodule refactor: use git_path_submodule() in add_submodule_odb()Max Kirillov, Aug 4, 2015
  10. 2/2 path: implement common_dir handling in git_path_submodule()Max Kirillov, Aug 4, 2015
  11. 0/2 path: implement common_dir handling in git_path_submodule()Max Kirillov, Aug 4, 2015
  12. 1/2 submodule refactor: use git_path_submodule() in add_submodule_odb()Max Kirillov, Aug 4, 2015
  13. Stefan BellerAug 18, 2015
  14. 2/2 path: implement common_dir handling in git_path_submodule()Max Kirillov, Aug 4, 2015
  15. Stefan BellerAug 17, 2015
  16. 0/2 Submodule object pathMax Kirillov, Sep 10, 2015
  17. 1/2 submodule refactor: use git_pathdup_submodule() in add_submodule_odb()Max Kirillov, Sep 10, 2015
  18. Jeff KingSep 11, 2015
  19. Max KirillovSep 13, 2015
  20. 2/2 path: implement common_dir handling in git_pathdup_submodule()Max Kirillov, Sep 10, 2015
  21. Junio C HamanoSep 11, 2015
  22. Max KirillovSep 13, 2015
  23. Junio C HamanoSep 14, 2015

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.