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

Support git worktrees for foreman-packaging #207

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Mar 28, 2023

Previously it was assumed to have something like ~/dev/foreman-packaging but with git worktrees you can create multiple working directories. I have switched over to:

$ tree -L 1 ~/dev/foreman-packaging
/home/ekohl/dev/foreman-packaging
├── deb-3.1
├── deb-3.2
├── deb-3.3
├── deb-3.4
├── deb-3.5
├── deb-3.6
├── deb-develop
├── master
├── rpm-3.1
├── rpm-3.2
├── rpm-3.3
├── rpm-3.5
├── rpm-3.6
└── rpm-develop

This is all backed by a single .git directory, which makes it much cheaper.

It is off by default, but can be enabled with a (local) setting.

@ekohl ekohl force-pushed the use-git-worktrees branch 3 times, most recently from fe20247 to 1863742 Compare May 24, 2023 16:22
bump_packaging Fixed Show fixed Hide fixed
bump_packaging Fixed Show fixed Hide fixed
@ekohl
Copy link
Member Author

ekohl commented Aug 23, 2023

Includes #254.

Previously it was assumed to have something like ~/dev/foreman-packaging
but with git worktrees you can create multiple working directories. I
have switched over to:

    $ tree -L 1 ~/dev/foreman-packaging
    /home/ekohl/dev/foreman-packaging
    ├── deb-3.1
    ├── deb-3.2
    ├── deb-3.3
    ├── deb-3.4
    ├── deb-3.5
    ├── deb-3.6
    ├── deb-develop
    ├── master
    ├── rpm-3.1
    ├── rpm-3.2
    ├── rpm-3.3
    ├── rpm-3.5
    ├── rpm-3.6
    └── rpm-develop

This is all backed by a single .git directory, which makes it much
cheaper.

It is off by default, but can be enabled with a (local) setting.
@ekohl ekohl changed the title Use git worktrees for foreman-packaging Support git worktrees for foreman-packaging Nov 1, 2023
@ekohl ekohl marked this pull request as ready for review November 7, 2023 15:05
bump_packaging Outdated Show resolved Hide resolved
Co-authored-by: Evgeni Golov <[email protected]>
@ekohl ekohl merged commit 940a720 into theforeman:master Nov 7, 2023
1 of 2 checks passed
@ekohl ekohl deleted the use-git-worktrees branch November 7, 2023 15:26
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.

2 participants