EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How to resolve git merge conflict in submodules?
From: "Zimoch Dirk \(PSI\) via Core-talk" <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Fri, 20 Sep 2019 14:35:24 +0000
On Fri, 2019-09-20 at 07:27 -0700, Michael Davidsaver wrote:
> Firstly, the 'gitk' tool will show a "diff" with submodule short commit messages
> between the two parent revisions.

gitk shows:
------------------------------ modules/pvAccess -------------------------------
index 60fefdb,c8c3cf4..0000000

-------------------------------- modules/pvData --------------------------------
index cdd6980,b903df5..0000000

------------------------------ modules/pvDatabase ------------------------------
index 428f784,d7bd562..0000000

---------------------------- modules/normativeTypes ----------------------------
Submodule modules/normativeTypes ba33c74..c6168a7 (rewind):
  < Update version number to 6.0.1 DEVELOPMENT

------------------------------- modules/pva2pva -------------------------------
Submodule modules/pva2pva d70a2ff..ce39c93 (rewind):
  < Update version number to 1.2.2 DEVELOPMENT

------------------------------ modules/pvaClient ------------------------------
Submodule modules/pvaClient 246ccea..aba4092 (rewind):
  < Update version number to 4.7.0 DEVELOPMENT
  < fix issue #62 PvaClientData::parse bug
  < Update RELEASE_NOTES.md
  < Merge pull request #61 from mrkraimer/master


No nothing useful for the conflicts pvAccess, pvData, pvDatabase.

> 
> Secondly, "resolving" this part of the merge conflict means picking one
> or the other submodule revision.  It isn't difficult to fix an incorrect
> choice later.  My usual starting point is the one which has the later commit date.
> Don't try to create new submodule commits.  Especially as you aren't
> actually working on the submodule.

How to pick one submodule version?


> 
> 
> On 9/20/19 7:04 AM, Zimoch Dirk (PSI) via Core-talk wrote:
> > On Fri, 2019-09-20 at 15:00 +0200, Jeong Han Lee wrote:
> > > Hi Dirk,
> > > 
> > >    If you run the following command, you can access the diff info from 
> > > main epics-base into submodules
> > > 
> > >    git config --global diff.submodule diff
> > > 
> > >    This is the corresponding option for ~/.gitconfig
> > > 
> > >    [diff]
> > > 	submodule=diff
> > > 
> > > 
> > >    I don't know which version of git will support this feature.
> > 
> > Now I get this when I try git status:
> > warning: Unknown value for 'diff.submodule' config variable: 'diff'
> > 
> > git version 1.8.3.1
> > 
> > 
> > > 
> > > 
> > >    If you work into git submodules, go there, change it, and commit to 
> > > git submodule repo individually. And move back to the main, and change 
> > > "hash id" of this submodule, and commit to main repo.
> > > 
> > >    Sometime, if you don't care about, you can use ignore option, in your 
> > > main repo also such as.
> > > 
> > > 
> > > [submodule "epics-base"]
> > >          path = epics-base
> > >          url = https://github.com/epics-base/epics-base
> > >          branch = 7.0
> > >          ignore = all
> > > 
> > > 
> > >    HTH,
> > >    Han
> > > 
> > > 
> > > 
> > > 
> > > On 9/20/19 2:40 PM, Marty Kraimer via Core-talk wrote:
> > > > Have you tried git diff?
> > > > For example:
> > > > 
> > > > git diff  modules/pvData
> > > > 
> > > > Marty
> > > > 
> > > > On 9/20/19 4:10 AM, Zimoch Dirk (PSI) via Core-talk wrote:
> > > > > On Fri, 2019-09-20 at 08:07 +0000, Zimoch Dirk (PSI) via Core-talk wrote:
> > > > > > Hi all,
> > > > > > 
> > > > > > I have a git problem (again) and google and stackoverflow did not 
> > > > > > really help.
> > > > > > 
> > > > > > A merge failed with this status:
> > > > > > 
> > > > > 
> > > > > I wasn't in the top directory but in modules/. Here is the git status 
> > > > > from top.
> > > > > 
> > > > > # Changes to be committed:
> > > > > #
> > > > > #    modified:   configure/CONFIG_BASE_VERSION
> > > > > #    modified:   documentation/RELEASE_NOTES.html
> > > > > #    modified:   documentation/ReleaseChecklist.html
> > > > > #    modified:   modules/ca/configure/CONFIG_CA_VERSION
> > > > > #    modified:   modules/database/configure/CONFIG_DATABASE_VERSION
> > > > > #    modified:   modules/database/src/ioc/misc/dbCore.dbd
> > > > > #    modified:   modules/libcom/configure/CONFIG_LIBCOM_VERSION
> > > > > #    modified:   modules/libcom/src/log/iocLog.c
> > > > > #    modified:   modules/libcom/src/log/iocLogServer.c
> > > > > #    modified:   modules/libcom/src/log/logClient.c
> > > > > #    modified:   modules/libcom/src/log/logClient.h
> > > > > #    modified:   modules/libcom/src/osi/os/RTEMS/devLibVMEOSD.c
> > > > > #    modified:   modules/normativeTypes
> > > > > #    modified:   modules/pva2pva
> > > > > #    modified:   modules/pvaClient
> > > > > #
> > > > > # Unmerged paths:
> > > > > #   (use "git add <file>..." to mark resolution)
> > > > > #
> > > > > #    both modified:      modules/pvAccess
> > > > > #    both modified:      modules/pvData
> > > > > #    both modified:      modules/pvDatabase
> > > > > #
> > > > > # Changes not staged for commit:
> > > > > #   (use "git add <file>..." to update what will be committed)
> > > > > #   (use "git checkout -- <file>..." to discard changes in working 
> > > > > directory)
> > > > > #
> > > > > #    modified:   modules/normativeTypes (new commits)
> > > > > #    modified:   modules/pva2pva (new commits)
> > > > > #    modified:   modules/pvaClient (new commits)
> > > > > 
> > > > > > What can I do about pvAccess, pvData, and pvDatabase? I cannot even 
> > > > > > find out what the conflict is.
> > > > > > 
> > > > > > Dirk
> > > > > > 
> 
> 

Replies:
Re: How to resolve git merge conflict in submodules? Michael Davidsaver via Core-talk
References:
How to resolve git merge conflict in submodules? Zimoch Dirk (PSI) via Core-talk
Re: How to resolve git merge conflict in submodules? Zimoch Dirk (PSI) via Core-talk
Re: How to resolve git merge conflict in submodules? Marty Kraimer via Core-talk
Re: How to resolve git merge conflict in submodules? Jeong Han Lee via Core-talk
Re: How to resolve git merge conflict in submodules? Zimoch Dirk (PSI) via Core-talk
Re: How to resolve git merge conflict in submodules? Michael Davidsaver via Core-talk

Navigate by Date:
Prev: Re: How to resolve git merge conflict in submodules? Michael Davidsaver via Core-talk
Next: Re: How to resolve git merge conflict in submodules? Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: How to resolve git merge conflict in submodules? Michael Davidsaver via Core-talk
Next: Re: How to resolve git merge conflict in submodules? Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 20 Sep 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·