From: Timur Tabi <timur@freescale.com>
To: git <git@vger.kernel.org>
Subject: How can I tell if a file has been updated upstream?
Date: Fri, 5 Feb 2010 10:23:11 -0600 [thread overview]
Message-ID: <ed82fe3e1002050823gec57827j184c9c4cff4f4a45@mail.gmail.com> (raw)
Is there a way for me to tell if a particular file in my repository
has an update in the upstream repository? For example, the SHA of the
HEAD is different in the remote repository than it is of the HEAD in
the local repository.
The reason I ask is that I have a set of Python scripts that I
distribute via git (other people in the company clone my repository).
I want my script, every time it's run, to check if an update is
available, and ask the user to do "git pull".
--
Timur Tabi
Linux kernel developer at Freescale
next reply other threads:[~2010-02-05 16:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 16:23 Timur Tabi [this message]
2010-02-05 16:44 ` How can I tell if a file has been updated upstream? Shawn O. Pearce
2010-02-05 16:56 ` Timur Tabi
2010-02-05 17:39 ` Nicolas Pitre
2010-02-05 16:50 ` Junio C Hamano
2010-02-05 16:57 ` Timur Tabi
2010-02-26 0:18 ` Timur Tabi
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=ed82fe3e1002050823gec57827j184c9c4cff4f4a45@mail.gmail.com \
--to=timur@freescale.com \
--cc=git@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;
as well as URLs for NNTP newsgroup(s).