public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: linux-kernel@vger.kernel.org
Subject: git/cogito/stgit interaction problem
Date: Sat, 27 Jan 2007 16:59:12 +0100	[thread overview]
Message-ID: <20070127155912.GJ6017@stusta.de> (raw)

I often run into the following annoying problem when working on the 
2.6.16 and trivial trees:

I want to change or delete the x-th commit from the top under the 
following prerequisites:
- the last x commits don't contain merges
- the last x commits aren't pushed anywhere else

The only tool I know that helps me doing this conveniently is stgit.


Testcase:

$ cg-push  #  everything is pushed in this testcase
$ vi Makefile
$ cg-commit 
Committed as 94b13e5b0f46ba38ee6fd8f47b418d8a18eded52
$ stg init
$ stg uncommit -n 1  #  uncommit x-1 commits
Uncommitting 1 patches... done
$ stg pop -a
Popping patch "asdf"... done
No patches applied
$ #  in real use cases, that's the point where I'm using 
$ #  cg-admin-uncommit (plus perhaps later cg-commit) on the x-th commit
$ stg push -a
Fast-forwarded patch "asdf"
Now at patch "asdf"
$ stg commit
Committing 1 patches... done
$ cg-admin-uncommit -t
Rewinding 94b13e5b0f46ba38ee6fd8f47b418d8a18eded52 (HEAD) -> 08ceda6f8c5d68108308cf01fc5c3ec35775baa9
$ cg-push  # should work (and report that the tree is unchanged in this testcase)
bunk@master.kernel.org's password: 
error: src refspec master matches more than one.
fatal: unexpected EOF
$ cat .git/refs/bases/master 
94b13e5b0f46ba38ee6fd8f47b418d8a18eded52
$ rm -r .git/refs/bases  #  workaround found using Google
$ cg-push  # works fine
bunk@master.kernel.org's password: 
Everything up-to-date
$ 


Versions:
git 1.4.4.4
cogito 0.18.2
stgit 0.11


Any hints on whom to blame for this?
Or if these tools aren't expected to work together in this way, what is 
the official way for getting the same functionality?


TIA
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


                 reply	other threads:[~2007-01-27 15:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070127155912.GJ6017@stusta.de \
    --to=bunk@stusta.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox