Thread (24 messages) flat view 24 messages, 9 authors, 2016-06-15

Re: best way to fastforward all tracking branches after a fetch

From: Stefan Haller <hidden>
Date: 2016-06-15 22:52:36

Hallvard B Furuseth [off-list ref] wrote:
Stefan Haller writes:
quoted
Gelonida N [off-list ref] wrote:
quoted
What is the best way to fastforward all fastforwardable tracking
branches after a git fetch?
Here's a script that does this.  It isn't very well tested, I hope I
didn't miss any edge cases. Use at your own risk.
Local branches can track each other.  So the script needs to toposort
the branches, or to loop until either nothing was done or an error
happened.  (The latter to prevent an eternal loop on error.)
Is this just theoretical, or are there real use cases for this? What
would be a workflow with such a local tracking branch?

For me personally, the script is good enough, because I only ever have
branches that track an 'origin' branch with the same name.


-- 
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help