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

Re: cogito - how do I ???

From
Sam Ravnborg <sam@ravnborg.org>
Date
May 22, 2005, 07:14 UTC
Message-ID
<20050522071435.GA10681@mars.ravnborg.org>
In-Reply-To
<Pine.LNX.4.58.0505211635440.2206@ppc970.osdl.org>
Show 13 quoted lines
> > > 1) Something similar to "bk changes -R". I use this to see what has
> > > happened upstream - to see if I really want to merge stuff.
> > 
> > Not sure what bk did here, but you can do something like:
> > 
> > cg-pull origin
> > cg-log -c -r origin
> 
> In the raw git interfaces, you'd basically have to do the same thing that
> "git-pull-script" does, except that _instead_ of calling the
> git-resolve-script thing, you'd do
> 
> 	git-rev-tree MERGE_HEAD ^HEAD | git-diff-tree -v -m -s --stdin

That looks ... long. I can teach my fingers to use: cg-log, but the above is just too much to type/remeber do a daily operation.

In bk the usage pattern was to check what was in mainline _before_ fetching and merging. So it seems that with git/cogoto one has to fetch the chages, inspect them, and then decide to apply or not.

When the fetches changes stay in MERGE_HEAD I assume my work when committed will be based on top of HEAD - so I do not have to know if I have fetched some (unmerged) updates.

Show 11 quoted lines
> to show what is in the downloaded MERGE_HEAD but not in HEAD.
> 
> > > 2) Export of individual patches. "bk export -tpatch -r1.2345"
> > > I have nu public git repository yet so I have to feed changes as
> > > plain patches. Browsing cg-* I did not find the command to do this.
> > 
> > cg-diff -p -r SHA1
> 
> And again, without the porcelain this is:
> 
> 	git-diff-tree -v -p <name>

The key here is the SHA1. I hoped to avoid specifying SHA1's with cogito, I so often miss one character when doing copy'n'paste.

Thanks all for the replies. Now I feel a bit more confident in this.
	Sam
Previous: Linus TorvaldsNext: Linus Torvalds
Message 4 of 13 in “cogito - how do I ???”
  1. Sam RavnborgMay 21, 2005
  2. SeanMay 21, 2005
  3. Linus TorvaldsMay 21, 2005
  4. Sam RavnborgMay 22, 2005
  5. Linus TorvaldsMay 22, 2005
  6. Thomas GlanzmannMay 23, 2005
  7. Junio C HamanoMay 23, 2005
  8. Thomas GlanzmannMay 23, 2005
  9. Linus TorvaldsMay 23, 2005
  10. Junio C HamanoMay 23, 2005
  11. Herbert XuMay 24, 2005
  12. Linus TorvaldsMay 24, 2005
  13. Frank SorensonMay 22, 2005

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.