Comments (6)
Output flags returned by git fetch
(based on git version 1.7.8):
-
indicates a deleted ref (tag) fetch.c#L281*
indicates a new ref (tag, branch) fetch.c#L306- (space) indicates a fast-forward fetch.c#L322
+
indicates a successful forced update fetch.c#L336=
indicates a ref that was up to date fetch.c#L257!
indicates a ref that was rejected fetch.c#L271
Also note that in fast-forwards, the output contains ".." (2 dots) but in a forced update the output contains "..." (3 dots).
https://gist.github.com/1480257
from git-dude.
Thanks for deep investigation.
However for me it looks like this:
$ echo " + 83e93db...b212eee branch-name -> origin/branch-name (forced update)" | grep -F -- '->' | sed -E 's/^\s+\+\s+//'
83e93db...b212eee branch-name -> origin/branch-name (forced update)
No "+" at the start of string. I wonder why sed is not stripping out "+" for you...
from git-dude.
AFAIK, not all sed
's are equal; linux uses GNU sed, the BSDs use their own, etc. In looking at the manpage for sed
on OS X, it looks like the POSIX.2 is being used for regex, so I'm guessing the regex used to strip the +
would be different on OS X -- just a shot in the dark...
Either way, I figured it was safe to open this as an issue with what I had uncovered so far, considering more than a +
could cause this issue.
from git-dude.
Considering awk
is already in use, maybe the sed
regex can be swapped for awk
to avoid cross-platform issues?
from git-dude.
I appreciate that and I'll keep that issue open for some time, maybe more facts will come up.
As for sed and output flags you listed I've made small fix: #23
Can you try this fix on your machine?
from git-dude.
Pull #23 fixed the issue so I'm closing this one.
from git-dude.
Related Issues (20)
- Selective monitoring of git commits HOT 3
- KDE integration HOT 3
- Handle forced push properly HOT 4
- Running as a daemon (OS X) HOT 13
- npm package HOT 4
- Auto Merge config HOT 5
- duplicate notification at every interval HOT 9
- Using existing cloned repository HOT 4
- Github links HOT 2
- asks for password at every interval HOT 4
- Remove need for Github's username and password HOT 6
- Decide on a license HOT 3
- Issue and other activity notifications HOT 1
- Add OS X Notification Center notification backend support HOT 7
- Breaks with parenthesis in the repo name HOT 2
- Running as daemon through cron (Ubuntu 15.10) HOT 5
- Not displaying notifications. HOT 2
- need to specify .git-dude dir HOT 3
- notifier for debian ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-dude.