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

Introduce acquire-git command #177

Closed
extsoft opened this issue Sep 1, 2019 · 1 comment
Closed

Introduce acquire-git command #177

extsoft opened this issue Sep 1, 2019 · 1 comment
Assignees
Labels

Comments

@extsoft
Copy link
Contributor

extsoft commented Sep 1, 2019

A problem/task I want to solve
I want to have Elegant Git's configuration as a default git configuration.

The solution I'd like
A separate command - acquire-git which will apply default configurations. Also, if I run acquire-repository and acquire-git is already executed, I don't need to create repository-specific aliases.

@extsoft extsoft added the feature label Sep 1, 2019
@extsoft extsoft added this to the 0.5.0 milestone Sep 1, 2019
@extsoft extsoft self-assigned this Sep 1, 2019
@extsoft extsoft removed this from the Top priority milestone Sep 9, 2019
extsoft added a commit that referenced this issue Nov 3, 2019
First of all, the configuration logic is described in the documentation.
This gives a user more details on what will be configured.

Next, the configuration logic is moved to a separate plugin. This allows
to reuse it in the future. All tests were updated also.

#177
extsoft added a commit that referenced this issue Nov 3, 2019
The command allows applying the required configuration to a Git
installation. Since there are some interceptionsbetween the
`acquire-git` and `acquire-repository`, there are some changes in the
overall configuration workflow. These changes are desribed on the
documentation.

Also, to prevent unexpected tests failures, the `~/.gitconfig` is
removed after each test where a real Git repository is used.

#177
extsoft added a commit that referenced this issue Nov 3, 2019
The configuration will start from `acquire-git` command and guide a user
through the process interactively. If standards are configured, they
will be printed to CLI instead of reconfiguring.

During the installation, `acquire-git` will be executed instead of
providing the instructions. This allows updating settings for the new
versions automatically.

Now, the `read` addon supports partial mocking of the answers correctly.
This works because a replay variable is always set with either provided
value or empty value.

#177
@extsoft
Copy link
Contributor Author

extsoft commented Nov 6, 2019

@extsoft extsoft closed this as completed Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant