Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for getting GitConfigs #22559

Merged
merged 3 commits into from
Jul 15, 2017
Merged

Add docs for getting GitConfigs #22559

merged 3 commits into from
Jul 15, 2017

Conversation

kshyatt
Copy link
Contributor

@kshyatt kshyatt commented Jun 26, 2017

No description provided.

@kshyatt kshyatt added docs This change adds or pertains to documentation libgit2 The libgit2 library or the LibGit2 stdlib module labels Jun 26, 2017
@kshyatt kshyatt requested a review from ararslan June 26, 2017 19:29
"""
GitConfig(level::Consts.GIT_CONFIG = Consts.CONFIG_LEVEL_DEFAULT)

Get the default git configuration by loading the global, system, and XDG configuration
Copy link
Member

Choose a reason for hiding this comment

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

Is XDG a common abbreviation? I don't think I've seen it before.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's some sort of weird file thing I don't understand. I think it's how git internally organizes its files?

Copy link
Member

Choose a reason for hiding this comment

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

Okay. If it's standard Git terminology then that's fine.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

s/Git terminology/terminology/g

Copy link
Contributor

Choose a reason for hiding this comment

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

I doubt it's a well-known acronym though so your point still stands

@kshyatt
Copy link
Contributor Author

kshyatt commented Jun 27, 2017

Anything more to do here? Do we want to write about XDG more?

@tkelman
Copy link
Contributor

tkelman commented Jun 27, 2017

provide a link to what it's talking about? or refer to the specific paths it means

@kshyatt
Copy link
Contributor Author

kshyatt commented Jul 8, 2017

I've searched again and I can't find a good summary of what this is. wat do

@tkelman
Copy link
Contributor

tkelman commented Jul 8, 2017

What were you looking at that made you mention it in the first place? Are there user-level configuration files these read from?

@kshyatt
Copy link
Contributor Author

kshyatt commented Jul 8, 2017

I think it was the docs on git-scm, which reference XDG but don't explain what it is

@tkelman
Copy link
Contributor

tkelman commented Jul 8, 2017

I'd suggest leaving it out then, replacing it with some description of user-level configuration if relevant.

@@ -1,5 +1,12 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license

"""
GitConfig(path::AbstractString, level::Consts.GIT_CONFIG = Consts.CONFIG_LEVEL_APP, force::Bool=false)
Copy link
Member

Choose a reason for hiding this comment

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

Inconsistent use of spaces around =, here and in the other signatures. I'd suggest removing the spaces since that seems to be more common in Base docstrings.

@ararslan
Copy link
Member

(the FreeBSD CI doesn't understand [ci skip] yet)

@kshyatt kshyatt merged commit ac51e03 into master Jul 15, 2017
@kshyatt kshyatt deleted the ksh/docconfig branch July 15, 2017 00:18
jeffwong pushed a commit to jeffwong/julia that referenced this pull request Jul 24, 2017
* Add docs for getting GitConfigs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation libgit2 The libgit2 library or the LibGit2 stdlib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants