1-800-GIT-HELP

2020-01-13 Thread Jonathan Wakely
I imagine a lot of people are going to feel lost in the first few weeks of using Git. If you are stuck or confused about using Git for GCC development and too embarrassed to ask in public, feel free to contact me on IRC. I'm jwakely on OFTC, redi on Freenode. It would be nice if other experienced

Re: 1-800-GIT-HELP

2020-01-13 Thread Jason Merrill
I'm also happy to help. On Mon, Jan 13, 2020 at 6:40 AM Jonathan Wakely wrote: > I imagine a lot of people are going to feel lost in the first few > weeks of using Git. > > If you are stuck or confused about using Git for GCC development and > too embarrassed to ask in public, feel free to conta

Re: 1-800-GIT-HELP

2020-01-13 Thread Paul Smith
On Mon, 2020-01-13 at 11:33 +, Jonathan Wakely wrote: > I imagine a lot of people are going to feel lost in the first few > weeks of using Git. I don't do IRC (and I'm not a GCC dev :)) but I'm happy to help via email. One thing I'll say though: if you're an Emacs user then IMO you should run

Re: 1-800-GIT-HELP

2020-01-13 Thread Nathan Sidwell
On 1/13/20 6:33 AM, Jonathan Wakely wrote: I imagine a lot of people are going to feel lost in the first few weeks of using Git. thanks. I have a question, but first some info that may well be useful to others. Today I learnt that one can use worktrees to work with different checked out br

Re: 1-800-GIT-HELP

2020-01-13 Thread Jason Merrill
On Mon, Jan 13, 2020 at 10:29 AM Nathan Sidwell wrote: > On 1/13/20 6:33 AM, Jonathan Wakely wrote: > > I imagine a lot of people are going to feel lost in the first few > > weeks of using Git. > > thanks. I have a question, but first some info that may well be useful > to others. > > Today I le

Re: 1-800-GIT-HELP

2020-01-13 Thread Andreas Schwab
On Jan 13 2020, Jason Merrill wrote: > On Mon, Jan 13, 2020 at 10:29 AM Nathan Sidwell wrote: > >> If I drop 'master' from the command I get: >> >git worktree add ../../error/src >> Preparing ../../error/src (identifier src1) >> >> * what does 'identifier src1' mean, and what did that do? >> > >

Re: 1-800-GIT-HELP

2020-01-13 Thread Nathan Sidwell
On 1/13/20 10:58 AM, Andreas Schwab wrote: On Jan 13 2020, Jason Merrill wrote: On Mon, Jan 13, 2020 at 10:29 AM Nathan Sidwell wrote: If I drop 'master' from the command I get: >git worktree add ../../error/src Preparing ../../error/src (identifier src1) * what does 'identifier src1' mea

Re: 1-800-GIT-HELP

2020-01-13 Thread Thomas Rodgers
Paul Smith writes: > On Mon, 2020-01-13 at 11:33 +, Jonathan Wakely wrote: >> I imagine a lot of people are going to feel lost in the first few >> weeks of using Git. > > I don't do IRC (and I'm not a GCC dev :)) but I'm happy to help via email. > > One thing I'll say though: if you're an Em

Re: 1-800-GIT-HELP

2020-01-13 Thread Thomas Rodgers
I am also happy to help Jonathan Wakely writes: > I imagine a lot of people are going to feel lost in the first few > weeks of using Git. > > If you are stuck or confused about using Git for GCC development and > too embarrassed to ask in public, feel free to contact me on IRC. I'm > jwakely on O

Re: 1-800-GIT-HELP

2020-01-13 Thread Thomas Rodgers
Thomas Rodgers writes: > I am also happy to help > rodgertq on freenode and oftc > Jonathan Wakely writes: > >> I imagine a lot of people are going to feel lost in the first few >> weeks of using Git. >> >> If you are stuck or confused about using Git for GCC development and >> too embarrassed

1-800-GIT-HELP question

2020-01-15 Thread Gaius Mulley
Hello, Firstly many thanks to all who have worked on the git migration and also for the offer of help :-) I'm seeking a little advice on an efficient way to combine the gm2 git repro with the gcc git repro. When gcc was using subversion I had a script which untared the gm2 git over the subvers

Re: 1-800-GIT-HELP question

2020-01-15 Thread Jonathan Wakely
On Wed, 15 Jan 2020 at 10:14, Gaius Mulley wrote: > > > Hello, > > Firstly many thanks to all who have worked on the git migration and also > for the offer of help :-) > > I'm seeking a little advice on an efficient way to combine the gm2 git > repro with the gcc git repro. When gcc was using sub

Re: 1-800-GIT-HELP question

2020-01-15 Thread Matthew Malcomson
On 15/01/2020 10:13, Gaius Mulley wrote: > > Hello, > > Firstly many thanks to all who have worked on the git migration and also > for the offer of help :-) > > I'm seeking a little advice on an efficient way to combine the gm2 git > repro with the gcc git repro. When gcc was using subversion I

Re: 1-800-GIT-HELP question

2020-01-15 Thread Andrew Pinski
On Wed, Jan 15, 2020 at 2:14 AM Gaius Mulley wrote: > > > Hello, > > Firstly many thanks to all who have worked on the git migration and also > for the offer of help :-) > > I'm seeking a little advice on an efficient way to combine the gm2 git > repro with the gcc git repro. When gcc was using s

Re: 1-800-GIT-HELP question

2020-01-15 Thread Gaius Mulley
Jonathan Wakely writes: > Is there a reason you can't just make it a branch of the GCC repo? > > It would mean you need to merge from upstream GCC into your repo, > rather than just dropping your repo into/onto a GCC clone, but to me > it seems the more natural solution. The modifications to the

Re: 1-800-GIT-HELP question

2020-01-15 Thread Gaius Mulley
Andrew Pinski writes: > > One thing which you could do is kinda of what glibc did when they > merged glibc and glibc-ports. > Really it would useful if you get GM2 into the base sources of gcc > instead for GCC 11 :). Hello, yes indeed this is a huge priority for gm2 - all the big issues are re

Re: 1-800-GIT-HELP question

2020-01-15 Thread Jonathan Wakely
On Wed, 15 Jan 2020 at 11:21, Gaius Mulley wrote: > > Andrew Pinski writes: > > > > > One thing which you could do is kinda of what glibc did when they > > merged glibc and glibc-ports. > > Really it would useful if you get GM2 into the base sources of gcc > > instead for GCC 11 :). > > Hello, >

Re: 1-800-GIT-HELP question

2020-01-15 Thread Gaius Mulley
Jonathan Wakely writes: > On Wed, 15 Jan 2020 at 11:21, Gaius Mulley wrote: >> >> Andrew Pinski writes: >> >> > >> > One thing which you could do is kinda of what glibc did when they >> > merged glibc and glibc-ports. >> > Really it would useful if you get GM2 into the base sources of gcc >> >

1-800-GIT-HELP Reverting a patch

2020-05-21 Thread Thomas Koenig via Gcc
What is the current established way of reverting a patch, with the current state of the tools? I did $ git revert r9-8541-g2a732dbdfcc0a3bc2b4bdb5387fffa193fea6df6 on origin/releases/gcc-9, and now only the ChangeLog entries reversed (which is not wanted), but the code is unchanged (which is ev

Re: 1-800-GIT-HELP Reverting a patch

2020-05-21 Thread Andreas Schwab
On Mai 21 2020, Thomas Koenig via Gcc wrote: > $ git revert r9-8541-g2a732dbdfcc0a3bc2b4bdb5387fffa193fea6df6 > > on origin/releases/gcc-9, and now only the ChangeLog entries reversed > (which is not wanted), but the code is unchanged (which is even > less wanted). You are trying to revert a comm

Re: 1-800-GIT-HELP Reverting a patch

2020-05-21 Thread Thomas Koenig via Gcc
Am 21.05.20 um 11:45 schrieb Andreas Schwab: On Mai 21 2020, Thomas Koenig via Gcc wrote: $ git revert r9-8541-g2a732dbdfcc0a3bc2b4bdb5387fffa193fea6df6 on origin/releases/gcc-9, and now only the ChangeLog entries reversed (which is not wanted), but the code is unchanged (which is even less wa

Re: 1-800-GIT-HELP Reverting a patch

2020-05-21 Thread Andreas Schwab
On Mai 21 2020, Thomas Koenig wrote: > An error message or warning from git might have been nice, though. How can it know? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: 1-800-GIT-HELP Reverting a patch

2020-05-21 Thread Thomas Koenig via Gcc
Am 21.05.20 um 13:05 schrieb Andreas Schwab: On Mai 21 2020, Thomas Koenig wrote: An error message or warning from git might have been nice, though. How can it know? Obviously, reverting the already applied patch was a no-op. I would assume that git noticed that, and could issue a message l

Re: 1-800-GIT-HELP Reverting a patch

2020-05-21 Thread Andreas Schwab
On Mai 21 2020, Thomas Koenig wrote: > Obviously, reverting the already applied patch was a no-op. Obviously not, since the first revert was partial only. > I would assume that git noticed that, and could issue a message > like "applying diff to foo.c failed". patch(1) manages it. git is not do

Re: 1-800-GIT-HELP Reverting a patch

2020-05-21 Thread Thomas Koenig via Gcc
Hi Andreas, git is not doing a plain patch, it is doing a merge. It is not unusual for a merge to have changes that are already present on both sides. ... which just goes to show that it is very easy to make a fool of yourself with git if you have no mental model of what it does. That's not n

1-800-GIT-HELP: Fixing a commit message?

2020-01-16 Thread Gerald Pfeifer
It turns out I fumbled the commit message on the commit below to wwwdocs. Instead of Redirect cvswrite.html to gitwrite.html instead of svnwrite.html. I committed this with a message of Redirect cvs.html to git.html instead of svn.html. and pushed already. In CVS I could manually edit t

Re: 1-800-GIT-HELP: Fixing a commit message?

2020-01-16 Thread Jakub Jelinek
On Thu, Jan 16, 2020 at 07:51:37PM +0100, Gerald Pfeifer wrote: > It turns out I fumbled the commit message on the commit below to wwwdocs. > > Instead of > Redirect cvswrite.html to gitwrite.html instead of svnwrite.html. > I committed this with a message of > Redirect cvs.html to git.h

1-800-GIT-HELP (how to delete a user branch?)

2022-10-25 Thread Gaius Mulley via Gcc
Just wondering what is the safest way to delete a user branch? [I used ./contrib/git-add-user-branch.sh and wanted to start over (user branch for m2 and gcc12)], many thanks, Gaius

Re: 1-800-GIT-HELP (how to delete a user branch?)

2022-10-25 Thread Jonathan Wakely via Gcc
On Tue, 25 Oct 2022 at 13:23, Gaius Mulley via Gcc wrote: > > > Just wondering what is the safest way to delete a user branch? > > [I used ./contrib/git-add-user-branch.sh and wanted to start over > (user branch for m2 and gcc12)], When you say start over, do you mean reuse the same branch name

Re: 1-800-GIT-HELP (how to delete a user branch?)

2022-10-25 Thread Gaius Mulley via Gcc
Jonathan Wakely writes: > On Tue, 25 Oct 2022 at 13:23, Gaius Mulley via Gcc wrote: >> >> >> Just wondering what is the safest way to delete a user branch? >> >> [I used ./contrib/git-add-user-branch.sh and wanted to start over >> (user branch for m2 and gcc12)], > > When you say start over, do

[1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-05-30 Thread Harald Anlauf
Dear experts, let's assume I need to backport a series of commits on master to a release branch. In the release branch, this series of commits should become a single commit. With bare git, there is "cherry-pick -n" that seems to be applicable. What is the right way to do it for gcc? Thanks, Ha

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-05-30 Thread Jonathan Wakely via Gcc
On Sat, 30 May 2020 at 21:09, Harald Anlauf wrote: > > Dear experts, > > let's assume I need to backport a series of commits on master to a release > branch. > In the release branch, this series of commits should become a single commit. > > With bare git, there is "cherry-pick -n" that seems to b

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-05-30 Thread Jakub Jelinek via Gcc
On Sat, May 30, 2020 at 09:35:05PM +0100, Jonathan Wakely via Gcc wrote: > On Sat, 30 May 2020 at 21:09, Harald Anlauf wrote: > > > > Dear experts, > > > > let's assume I need to backport a series of commits on master to a release > > branch. > > In the release branch, this series of commits shou

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-01 Thread Martin Liška
On 5/30/20 11:38 PM, Jakub Jelinek via Gcc wrote: On Sat, May 30, 2020 at 09:35:05PM +0100, Jonathan Wakely via Gcc wrote: On Sat, 30 May 2020 at 21:09, Harald Anlauf wrote: Dear experts, let's assume I need to backport a series of commits on master to a release branch. In the release branc

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-01 Thread Thomas Koenig via Gcc
Hi Martin, For now, I would recommend doing 1:1 backports. Otherwise, you'll need to merge all ChangeLog entries in a format the server hook accepts. That can require some work. If the first commit caused a regression, which the second one fixed, this would keep the first regression, right?

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-01 Thread Jonathan Wakely via Gcc
On Mon, 1 Jun 2020 at 12:56, Thomas Koenig wrote: > > Hi Martin, > > > For now, I would recommend doing 1:1 backports. Otherwise, you'll need > > to merge > > all ChangeLog entries in a format the server hook accepts. That can > > require some > > work. > > If the first commit caused a regression,

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-01 Thread Thomas Koenig via Gcc
Am 01.06.20 um 14:20 schrieb Jonathan Wakely via Gcc: It will only "keep" it for a matter of seconds, between that backported commit and the backported fix. And unless you push the first commit before pushing the fix, nobody will ever see the regression without also seeing the fix (unless they sp

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-01 Thread Jonathan Wakely via Gcc
On Mon, 1 Jun 2020 at 13:25, Thomas Koenig wrote: > > Am 01.06.20 um 14:20 schrieb Jonathan Wakely via Gcc: > > It will only "keep" it for a matter of seconds, between that > > backported commit and the backported fix. And unless you push the > > first commit before pushing the fix, nobody will ev

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-01 Thread Iain Sandoe via Gcc
Jonathan Wakely via Gcc wrote: On Mon, 1 Jun 2020 at 13:25, Thomas Koenig wrote: Am 01.06.20 um 14:20 schrieb Jonathan Wakely via Gcc: It will only "keep" it for a matter of seconds, between that backported commit and the backported fix. And unless you push the first commit before pushing th

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-01 Thread Andreas Schwab
On Jun 01 2020, Jonathan Wakely via Fortran wrote: > On Mon, 1 Jun 2020 at 13:25, Thomas Koenig wrote: >> >> Am 01.06.20 um 14:20 schrieb Jonathan Wakely via Gcc: >> > It will only "keep" it for a matter of seconds, between that >> > backported commit and the backported fix. And unless you push t

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-02 Thread Richard Biener via Gcc
On Mon, Jun 1, 2020 at 2:17 PM Thomas Koenig via Fortran wrote: > > Hi Martin, > > > For now, I would recommend doing 1:1 backports. Otherwise, you'll need > > to merge > > all ChangeLog entries in a format the server hook accepts. That can > > require some > > work. > > If the first commit caused

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-02 Thread Jakub Jelinek via Gcc
On Tue, Jun 02, 2020 at 10:53:57AM +0200, Richard Biener wrote: > On Mon, Jun 1, 2020 at 2:17 PM Thomas Koenig via Fortran > wrote: > > > > Hi Martin, > > > > > For now, I would recommend doing 1:1 backports. Otherwise, you'll need > > > to merge > > > all ChangeLog entries in a format the server

Re: [1-800-GIT-HELP] Backporting a series of commits into a combined commit?

2020-06-02 Thread Martin Liška
On 6/2/20 11:01 AM, Jakub Jelinek wrote: On Tue, Jun 02, 2020 at 10:53:57AM +0200, Richard Biener wrote: On Mon, Jun 1, 2020 at 2:17 PM Thomas Koenig via Fortran wrote: Hi Martin, For now, I would recommend doing 1:1 backports. Otherwise, you'll need to merge all ChangeLog entries in a form

[1-800-GIT-HELP] Pushing a merge with master to a branch fails with git gcc-verify

2020-10-28 Thread Thomas Koenig via Gcc
I tried to update the coarray_native branch to current master with "git merge master" as given by https://gcc.gnu.org/gitwrite.html#branches That worked without any error message. Next, I tried to verify that a "git push" would succeed, and got an error: $ git gcc-verify Checking bf6dad60c338a

Re: [1-800-GIT-HELP] Pushing a merge with master to a branch fails with git gcc-verify

2020-10-28 Thread Andre Vehreschild
Hi Thomas, at work we usually do not merge master back into a dev branch, but use 'git rebase -i master'. This will so to say stash any commits on the dev-branch, i.e. roll it back, then apply all changes of master and then apply the stashed changes again. This should allow to bypass any server s

Re: [1-800-GIT-HELP] Pushing a merge with master to a branch fails with git gcc-verify

2020-10-28 Thread Iain Sandoe via Gcc
Thomas Koenig via Gcc wrote: I tried to update the coarray_native branch to current master with "git merge master" as given by https://gcc.gnu.org/gitwrite.html#branches That worked without any error message. Next, I tried to verify that a "git push" would succeed, and got an error: $ git g

Re: [1-800-GIT-HELP] Pushing a merge with master to a branch fails with git gcc-verify

2020-10-28 Thread Jakub Jelinek via Gcc
On Wed, Oct 28, 2020 at 06:53:35PM +0100, Thomas Koenig via Gcc wrote: > I tried to update the coarray_native branch to current master with > "git merge master" as given by > > https://gcc.gnu.org/gitwrite.html#branches > > That worked without any error message. > > Next, I tried to verify that

Re: [1-800-GIT-HELP] Pushing a merge with master to a branch fails with git gcc-verify

2020-10-28 Thread Thomas Koenig via Gcc
Hi, Don't use git gcc-verify for development branches or user branches, it checks the rules required for release branches and the trunk only. Other branches have different rules. Thanks to everybody for their help. I have now pushed the merge to the branch successfully. I'm glad that the par