Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

tiennou
Copy link
Contributor

@tiennou tiennou commented Jan 23, 2019

This should close #4908, attempts at #4783 and #4711, and some API comment touch-ups.

Copy link
Member

@pks-t pks-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for doing all these nasty documentation fixes. I really appreciate them a lot, especially as I myself hate doing them 🙄

@@ -59,7 +59,7 @@ typedef __haiku_std_int64 git_time_t;
* app, even though /we/ define _FILE_OFFSET_BITS=64.
*/
typedef int64_t git_off_t;
typedef int64_t git_time_t;
typedef int64_t git_time_t; /**< time in seconds from epoch */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't we have some problems correctly rendering those inline comments? Not quite sure whether I remember correctly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I had this fixed on my tweaked docurium, but it's currently complaing (loudly) about /var/folders/f4/b3wl780s12gfc25kpvl1rhk40000gn/T/HEAD-20190128-84175-yftmsd/git2/common.h:10:10: fatal error: 'time.h' file not found, which I'll have to investigate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I can confirm that vanilla & tweaked docurium completely ignores "primitive" typedefs. I can tweak it so it doesn't (modulo more fixes to grab the correct comment), but it means I'll pickup all "primitive" typedefs (like our size_t DOCURIUM override, or the typedef goop inside our Win32 inttypes.h)

@ethomson
Copy link
Member

Two questions about our documentation that ends up rendered on our website:

  1. Do we have any instructions for how to view it locally? IOW, how can I preview the changes that you're making easily?
  2. How do things get updated when we do a release? I rebuilt our CI system and am just now realizing that it doesn't seem to build docs at all...? Am I crazy or is this a manual process right now?

@tiennou
Copy link
Contributor Author

tiennou commented Jan 24, 2019

AFAIU, https://libgit2.org/libgit2/ comes from docurium (aka. this repo's gh-pages), which I run sometimes and was planning to do soon™. The rest of https://libgit2.org comes from https://libgit2.github.com/libgit2.github.com (which has a few PR).

Right now it's completely manual, and though I'm making steps teaching docurium NOT to regenerate every version for every run, I don't think it's easily automatable (at least for the time being). I do have a local Rakefile to quickly spin up updated docs (ie. rake update && rake serve, browse local docs), which I can share.

@ethomson
Copy link
Member

Woo. You can now download a zip of the docs from the PR validation build to check it out locally. 👀😀

* @param time time when the action happened
* @param offset timezone offset in minutes for the time
* @param time time (in seconds from epoch) when the action happened
* @param offset timezone offset (in minutes) for the time
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, these aren't minutes exactly, this is minutes and hours in ISO 8601 format. (An hour is 100 not 60.) Would you mind fixing that up while you're here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, invoking ISO8601 just made me 😨. You mean that it's represented as a 4-digit hhmm number ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see, parsing does what you expect, but we wrangle this as a number of minutes internally.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sorry, hhmm.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be misunderstanding, but it looks like the hhmm decimal format only relates to parsing signatures, not the public API. My "minutes" link above uses difftime (hence seconds) to calculate the offset in minutes, and there's no 100 anywhere.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, yes, of course you're right.

@ethomson
Copy link
Member

I had a few comments, otherwise 👍

@ethomson ethomson merged commit 2f1d6ef into libgit2:master Jan 30, 2019
@ethomson
Copy link
Member

Thanks @tiennou!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

document regarding git_time_t should be clear about its unit
3 participants