Repository navigation
Push/pull/update - #601
Push/pull/update#601
Conversation
| nextProps.symbol.h !== this.props.symbol.h || | ||
| nextProps.symbol.d !== this.props.symbol.d) { | ||
| nextProps.symbol.d !== this.props.symbol.d || | ||
| nextProps.className !== this.props.className) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
This is ready for review 🙏 I split the Publish Repository flow out into its own issue: #611 |
4f30461 to
ae399d2
Compare
| public updateLastFetched(): Promise<void> { | ||
| const path = Path.join(this.repository.path, '.git', 'FETCH_HEAD') | ||
| return new Promise((resolve, reject) => { | ||
| Fs.stat(path, (err, stats) => { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| if (!upstream) { return null } | ||
|
|
||
| const range = `${branch.name}..${upstream}` | ||
| const range = `${branch.name}...${upstream}` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| const lastFetched = this.props.lastFetched | ||
| if (lastFetched) { | ||
| const relative = moment(lastFetched).fromNow() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| content.push( | ||
| <span key='ahead'> | ||
| {ahead} | ||
| <Octicon symbol={OcticonSymbol.arrowUp}/> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
A relevant thread got collapsed. About the last fetched date:
That could work alright, though if the user fetches outside the app our date won't be accurate. Maybe that's OK. I don't feel strongly either way. I changed |
|
So happy to get this in |
Fixes #598