Time next to some entries less than commit date? - github

Looking at the attached pic the last commit was 5 days ago, however the first 2 lines show changes 39 mins ago.
https://github.com/popcornmix/xbmc/tree/newclock5
If I click on the change description for the first line then it shows the commit was 3 year ago.
What am I missing here? Am I not understanding the whole commit/date/time thing?
Would appreciate it if someone explained this. I would think the latest commit should then show 39 mins ago?

On git are two types of dates: GIT_AUTHOR_DATE (when you made the original commit) and GIT_COMMITTER_DATE (when patch was applied).
In your example changes was commited 3 years ago but was applied later.
You could read more about author and commiter differences here: https://stackoverflow.com/a/18754896/1349549

Related

How to copy all the github commit ids between two software releases into a txt file? [duplicate]

This question already has answers here:
How to compare two tags with git?
(5 answers)
Closed 2 years ago.
I have two versions of code with the old one named "CMSSW_11_2_0_pre3" and new one named "CMSSW_11_2_0_pre5". There is a difference of about 170 pull requests with about 500 commits between the two. Please see this link:
https://github.com/cms-sw/cmssw/releases/CMSSW_11_2_0_pre5
I want to list all the 500 commit ids into a txt file. Doing it manually by copying and pasting each id from the website itself will take lot of time. Is there any other way to do it?
Pretty easy actually:
git log --pretty=format:"%H" CMSSW_11_2_0_pre3..CMSSW_11_2_0_pre5 > file

how can I find github issues by close date?

Is there a way to get the GitHub issues that were closed on-or-near a date? I have a commit in my codebase that does not reference an issue, and I'm wondering if it was done in response to a particular issue.
Ideally, I'd like to say "show me issues that were closed after August 10"
Use closed: to search for issues based on date closed. For example, to find issues closed after Aug 10, 2020, do
closed:>2020-08-10
You can also use a range. For example, to find issues closed in February or March of 2020, do:
closed:2020-02-01..2020-03-31
On the other hand, using state:closed updated:>=YYYY-MM-DD returns all issues that are currently closed and have been updated anytime on or after a particular date, which is not necessarily the same thing.
See the GitHub doc sections on the "closed" qualifier and working with dates.
Have a look at GitHub Searching issues and pull requests
.
An example would be something like:
state:closed updated:>=2013-02-01
with the date format as described in the docs as updated:YYYY-MM-DD

New Companies API: cannot retrieve all the updates

I am not able to retrieve all the updates from a company page. I can only retrieve the last, happened 4 days ago, but not the previous, happened 1 month and more ago.
Has this anything to do with the new API that took effect on 12th of May?
This is the endpoint I use:
https://api.linkedin.com/v1/companies/1234567/updates?count=100&format=json&oauth2_access_token=xxx
As already stated, I don't get the posts older than 1 month but I can get all the posts that are 4 days or younger.
Also on their test company profile, I can only retrieve posts that are 4 days or less.
EDIT:
Scratch the last: On the test company profile I can retrieve up to the 25th of April 2015.
EDIT2: On the page I am trying to grab, there are dozens of updates, but I seem to get only the last 2 (the previous are more than a month old) - sorry for being repetitive, just trying to give as much context as possible.
This is seems like API limitation:
From https://developer.linkedin.com/docs/company-pages
Only the most recent 50 updates for events of type status-update will be returned. For all other event types, the request will return all the updates within the past 20 days, or 250 total updates - whichever comes first.

How can I see approximate hours worked during the week with mercurial?

So I know about the Mercurial activity extension, however the data it seems to plot is number of commits. I don't think that is a good metric. If in an hour you make 20 commits or 1 commit, I don't think one can deduce much from that. I think it's far safer to say every time there is a commit we assume/input some previous time of work was done. 1-2 or maybe 5 hours (depending on the person). Then you plot that in a block style calendar widget (like github's contribution widget) either by week or by month...
Does anything like what I describe exist?
This has at the very least commit plotted by time of day:
https://bitbucket.org/fundacion_jala/stathg/wiki/Home
But it seems to be more of a point cloud rather than filling out blocks. This doesn't give one an idea as a percentage of the work week, how much has one worked. Not going to mark my answer as correct.

Logic behind order of repositories shown for a GitHub user

Is the order of repositories for a user simply the order of entry? I cannot see any logic in what is at the top of, for example, thoughtbot.
I'm thinking of writing a tool to get my desired ordering using the API, but maybe if I grokked the order better I could scan the list easier and not feel so compelled.
For example, as of 2013-12-21 16:01, these are the top two items on Thoughtbot:
shoulda-matchers - Last updated a day ago
suspenders - Last updated a day ago
But then the top item does not say it was updated a day ago ;
Dec 18, 2013 - Make order option Rails 4.0.1-compatible - aff7bd7e2a - authored 20 days ago
And the second on the list says it was authored a day ago
Dec 20, 2013 - Add spring - 078237f9ed - authored a day ago
Update;
The pull request is not related to the dates, see below. The comments are not related either. Thus I conclude perhaps there is evidence of a github bug. I will send another note to them. Perhaps this detail will help!
The two Closed Pull requests as of 2013-12-30Mon.09:19:09
TOP item = 11d ago ;
https://github.com/thoughtbot/shoulda-matchers/pulls?direction=desc&page=1&sort=created&state=closed
Make order option Rails 4.0.1-compatible
This is a fix for #388. From the commit: The way that we figure out whether the value which is p…
by mcmire 11 days ago
3 comments
2ND ITEM
https://github.com/thoughtbot/suspenders/pulls?direction=desc&page=1&sort=created&state=closed
Add spring
It's good stuff, and Rails 4.1 will include Spring by default. We may as well get on this train e…
by jferris 10 days ago
1 comment
They're ordered by time of last commit, newest at the top.
If you have a look at the GitHub API it says that the repositories are ordered by their creation date. Github API for listing repositories
It seems that this is also the case if for your personal repositories in the repository view. (Just tested this on my account)
(EDIT: I just realized that for the account that you mentioned, the repos are ordered by their last commit. However this is not the case for my account. It seems that the ordering depends on the overall number of repos linked to the account)