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

Re: RFC: repository of handy git aliases?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Aug 16, 2011, 13:55 UTC
Message-ID
<4E4A76E7.2090100@drmicha.warpmail.net>
In-Reply-To
<CAH3AnrrNPBNNNr7Lm2-vnqOisxWorF4FS32H+LBaybWF3KdnGg@mail.gmail.com>
Jon Seymour venit, vidit, dixit 08.08.2011 12:43:
Show 13 quoted lines
> On Mon, Aug 8, 2011 at 8:22 PM, Jon Seymour <jon.seymour@gmail.com> wrote:
>> On Mon, Aug 8, 2011 at 7:45 PM, Jakub Narębski <jnareb@gmail.com> wrote:
>>> On 8/8/11, Jon Seymour <jon.seymour@gmail.com> wrote:
> 
> I've also added this...
> 
> Listing the tips of branches in pu that are not in master
> ===========================================
> 
> Suppose you have two aliases defined like so:
> 
> [alias]
>         oneline = !/usr/bin/xargs -L1 git log --decorate --max-count=1 --oneline
How about
oneline = git log --no-walk --decorate --oneline
>         tips = "!_() { t=$(git rev-list --no-merges --max-count=1
> \"$@\"); if test -n \"$t\"; then echo $t; _ \"$@\" ^$t; fi; }; _"
> 
That one is way over my head, but if
> Then:
> 
> git tips origin/pu ^origin/next | git oneline
is your typical use case you may like
git branch --merged origin/pu --contains origin/next
(or with --no-merged, but put it first.)
Show 20 quoted lines
> might show something like this:
> 
> 9dcca58 filter-branch.sh: de-dent usage string
> 704c335 On Cygwin support both UNIX and DOS style path-names
> 1c460f9 t3030: fix accidental success in symlink rename
> 9e81372 test-path-utils: Add subcommand "prefix_path"
> ad733bd revert: Propagate errors upwards from do_pick_commit
> 76cf946 fixup! xdiff/xhistogram: rework handling of recursed results
> df6a9c7 fixup! describe: Refresh the index when run with --dirty
> c9f57a0 squash! ls-files: fix pathspec display on error
> a1288bc add--interactive: add option to autosplit hunks
> 365b78a t5800: point out that deleting branches does not work
> c997182 limit "contains" traversals based on commit generation
> 914b6fb doc/fast-import: document feature import-marks-if-exists
> b792c06 branch -v: honor core.abbrev
> b166408 mergetool: Don't assume paths are unmerged
> b29d76f merge: mark the final "Merge made by..." message for l10n
> 942cf39 receive-pack: Allow server to refuse pushes with too many objects
> 
> which is a list of the tips of branches that are in pu, but not in next.
That's not quite the standard --decorate, is it? ;)
Michael
Previous: Jon SeymourNext: Jon Seymour
Message 6 of 9 in “RFC: repository of handy git aliases?”
  1. Jon SeymourAug 8, 2011
  2. Jakub NarębskiAug 8, 2011
  3. Jon SeymourAug 8, 2011
  4. Jon SeymourAug 8, 2011
  5. Jon SeymourAug 8, 2011
  6. Michael J GruberAug 16, 2011
  7. Jon SeymourAug 18, 2011
  8. Michael J GruberAug 18, 2011
  9. Jon SeymourAug 19, 2011

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.