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

Re: Checking for fast-forward

From
FMFlorian Mickler <florian@mickler.org>
Date
Jul 6, 2009, 21:26 UTC
Message-ID
<20090706232614.32602ccc@schatten>
In-Reply-To
<ca4f67be0907060936v7bf7c44y4395717fff854fd4@mail.gmail.com>
this is more of a git question, than smth special to msysgit. 
(git ml cc'd)

On Mon, 6 Jul 2009 17:36:54 +0100 Lee Griffiths <poddster@gmail.com> wrote:

Show 19 quoted lines
> 
> I have a script that checks for fast-forwarding by doing a git push
> --dry-run. This strikes me as the wrong way to do it as it does _all_
> of the stuff a git push would normally do i.e., packing and so on, and
> I'm only really after the fast-forward check. Seeing as I already do a
> git push at the end of the script (actualy two, as I do a --tags one
> as well[1]), it seems like a big waste of time. Is there anyother way
> to check and see if the git push would work? (I want the script to
> avoid doing a git pull if possible).
> 
> 
> Thanks,
> Lee
> 
> 
> 
> [1] I originally assumed --tags would push the data AND the tags, but
> that doesn't seem to be the case.... Am I wrong in this?
> 
Next: Michael J Gruber
Message 1 of 5 in “Re: Checking for fast-forward”
  1. Florian MicklerJul 6, 2009
  2. Michael J GruberJul 7, 2009
  3. Florian MicklerJul 7, 2009
  4. Michael J GruberJul 7, 2009
  5. Lee GriffithsJul 8, 2009

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.