← Back to issue list

commands: add init option for git initialization

View original Github issue

Metadata

Project
snapcraft
Number
#3918
Type
pull request
State
closed
Author
atomcult
Labels
Created
Updated
Closed

Current evaluation

Closed without merging due to failing tests and merge conflicts. Added --git and --no-vcs options to the init command for automatic git initialization and .gitignore generation. Maintainer closed it pending future updates.

Suggested action:

No scores available.

Issue body

Add --no-vcs and --git options for the init subcommand to allow initialization of git and generation of a default .gitignore file in the project directory. - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `make lint`? - [ ] Have you successfully run `pytest tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without merging due to failing tests and merge conflicts. Added --git and --no-vcs options to the init command for automatic git initialization and .gitignore generation. Maintainer closed it pending future updates.
qwen3.6-35b-a3b-mtp-q6 Adding --no-vcs and --git options to the init command was closed due to failing tests and merge conflicts. A maintainer rejected the contribution, leaving the feature abandoned.
qwen3.6-35b-a3b-mtp-q6 Closed due to failing tests and merge conflicts. The pull request added --no-vcs and --git options to the init command for git initialization and .gitignore generation. Maintainer left the changes unmerged pending fixes.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1580 cli: setup gitignore when working from git directory at init. snapcraft closed Closed without merging. Maintainers requested additional robustness to prevent error-prone behavior and noted unresolved conflicts, effectively rejecting the contribution.
74%
#1149 feat(init): git init features craft-application merged Merged pull request adding Git initialization features to the init command. Approved by two reviewers and passed CI checks. Changes modify 9 files with 305 additions and 8 deletions.
72%