Re: git: how to figure out with a script what the last commit on remote repo is without fetching it
Joel Rees <joel.rees@gmail.com> writes:
> Well, your experience with git and mine are quite different.
>
> On Sat, Sep 20, 2014 at 11:15 PM, lee <lee@yun.yagibdah.de> wrote:
>> Joel Rees <joel.rees@gmail.com> writes:
>> [...]
>
> Let's clear the conversation, it's too cluttered for me to make sense
> of it any more.
>
> cd to your local copy of the repository you want to do some work in.
> Try these two commands:
>
> git log
[~/inst/emacs/emacs-git/emacs] git log
,----
| commit f0aeb3ae50be0f96cefa391c8483d8be9f81d9f9
| Merge: 4dbf5c2 9ce4cf2
| Author: lee <lee@yun.yagibdah.de>
| Date: Sun Aug 31 18:47:54 2014 +0200
|
| Merge branch 'master' of git://git.savannah.gnu.org/emacs
|
| commit 9ce4cf284c699fbb91e6123134b5aea563e2c208
| Author: Eli Zaretskii <eliz@gnu.org>
| Date: Sun Aug 31 18:46:47 2014 +0300
|
| Fix cursor drawing in hscrolled R2L screen lines.
|
| src/xdisp.c (get_glyph_string_clip_rects): Don't let the width of a
| clipping rectangle become negative (i.e. large positive, since
| it's an unsigned data type). This can happen in R2L hscrolled
| glyph rows, and caused us to draw the cursor glyph on the fringe.
| For the details, see
| http://lists.gnu.org/archive/html/emacs-devel/2014-08/msg00543.html.
|
| commit cd3ea0f14f2d0a9eb3fbb929456a57d5d5db3d27
| Author: Paul Eggert <eggert@cs.ucla.edu>
| Date: Sat Aug 30 19:50:10 2014 -0700
|
| * configure.ac (__restrict_arr): Remove; no longer used.
|
| commit d069fa522111c93be8db1f0e2869cc9f0f1ad125
| Author: Ken Brown <kbrown@cornell.edu>
| [...]
`----
> git branch --list -ar
,----
| [~/inst/emacs/emacs-git/emacs] git branch --list -ar
| origin/HEAD -> origin/master
| origin/concurrency
| origin/emacs-23
| origin/emacs-24
| origin/gtk-tabs
| origin/master
| origin/mh-e
| origin/old-branches/EMACS_21_1_RC
| origin/old-branches/EMACS_22_BASE
| origin/old-branches/EMACS_23_1_RC
| origin/old-branches/NewVC-fileset
| origin/old-branches/branch-5_8
| origin/old-branches/cedet-branch
| origin/old-branches/elpa
| origin/old-branches/emacs-unicode
| origin/old-branches/emacs-unicode-2
| origin/old-branches/font-backend
| origin/old-branches/gerd_defvaralias
| origin/old-branches/gnus-5_10-branch
| origin/old-branches/imagemagick
| origin/old-branches/lexbind
| origin/old-branches/lexbind-new
| origin/old-branches/multi-tty
| origin/old-branches/pending
| origin/old-branches/profiler
| origin/old-branches/python
| origin/old-branches/rmail-mbox-branch
| origin/old-branches/unicode-xft
| origin/old-branches/window-pub
| origin/other-branches/Boehm-GC
| origin/other-branches/Boehm-versions
| origin/other-branches/DAVELOVE
| origin/other-branches/FLYSPELL
| origin/other-branches/ILYA
| origin/other-branches/URL
| origin/other-branches/VENDOR
| origin/other-branches/XFT_JHD_BRANCH
| origin/other-branches/custom_themes
| origin/other-branches/fx-branch
| origin/other-branches/gerd_0001
| origin/other-branches/gerd_big
| origin/other-branches/gerd_dbe
| origin/other-branches/gerd_int
| origin/other-branches/glibc-2_0_x
| origin/other-branches/master-UNNAMED-BRANCH
| origin/other-branches/miles-orphaned-changes
| origin/other-branches/old-bidi
| origin/other-branches/old-concurrency
| origin/other-branches/patches_21_0
| origin/other-branches/test2
| origin/other-branches/thomas-posix1996
| origin/other-branches/ttn-vms-21-2-stash
| origin/other-branches/ttn-vms-21-3-stash
| origin/pending
| origin/trunk
| origin/x-tabs
| origin/xwidget
| [~/inst/emacs/emacs-git/emacs]
`----
> What do they tell you?
That it's been a while since I did a 'git pull'?
--
Knowledge is volatile and fluid. Software is power.
Reply to: