forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 157
git-add : Respect submodule ignore=all and only add changes with --force <path> #1987
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
Open
bicschneider
wants to merge
5
commits into
gitgitgadget:master
Choose a base branch
from
Praqma:respect-submodule-ignore
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5796009
read-cache: update add_files_to_cache take param include_ignored_subm…
bicschneider 9ec79b9
read-cache: add/read-cache respect submodule ignore=all
bicschneider 399a153
tests: add new t2206-add-submodule-ignored.sh to test ignore=all scen…
bicschneider 93c9595
tests: fix existing tests when add an ignore=all submodule
bicschneider ee84190
Documentation: add --include_ignored_submodules + ignore=all config
bicschneider File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| FROM ubuntu:latest | ||
|
|
||
| ARG USER_ID | ||
| ARG GROUP_ID | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
| ENV TZ=Europe/Copenhagen | ||
|
|
||
| RUN apt-get update \ | ||
| && \ | ||
| apt-get install -y \ | ||
| sudo \ | ||
| build-essential \ | ||
| libcurl4-gnutls-dev \ | ||
| libexpat1-dev \ | ||
| gettext \ | ||
| libz-dev \ | ||
| libssl-dev \ | ||
| asciidoc \ | ||
| xmlto \ | ||
| docbook-xsl \ | ||
| \ | ||
| tzdata \ | ||
| git \ | ||
| coccinelle \ | ||
| && \ | ||
| ln -fs /usr/share/zoneinfo/$TZ /etc/localtime \ | ||
| && \ | ||
| dpkg-reconfigure --frontend noninteractive tzdata | ||
|
|
||
| RUN apt-get update && apt-get install -y autoconf | ||
|
|
||
| RUN addgroup -gid 1001 gituser | ||
| RUN adduser --disabled-password -u 1001 -gid 1001 gituser | ||
| RUN usermod -aG sudo gituser | ||
| RUN echo 'gituser ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/010-gituser | ||
| RUN chmod 0440 /etc/sudoers.d/010-gituser | ||
|
|
||
| USER 1001 | ||
|
|
||
| #WORKDIR /home/gituser/git-src/ | ||
|
|
||
| #RUN make configure | ||
| #RUN ./configure --prefix=${HOME}/.local/ | ||
|
|
||
| #RUN make -j$(nproc) gitweb || make gitweb | ||
| #RUN make install-gitweb | ||
|
|
||
| #RUN make -j$(nproc) || make | ||
| #RUN make -j$(nproc) gitweb || make gitweb | ||
| #RUN make install-gitweb | ||
| #RUN make -j$(nproc) NO_PERL=YesPlease install || make NO_PERL=YesPlease install | ||
| #RUN make install | ||
|
|
||
|
|
||
| RUN mkdir -p ${HOME}/.local/ | ||
| #RUN ls -la ${HOME}/.local/bin | ||
| #ENV PATH="/home/gituser/.local/bin:${PATH}" | ||
| #RUN ls -l $HOME/.local/bin | ||
| #RUN echo $PATH $HOME | ||
|
|
||
| #RUN git --version | ||
| #RUN which git | ||
|
|
||
| RUN git config --global user.email "[email protected]" | ||
| RUN git config --global user.name "Git User" | ||
|
|
||
| #WORKDIR /home/gituser/git-test/ | ||
|
|
||
| #CMD [ "git" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| FROM ubuntu:latest | ||
|
|
||
| ARG USER_ID | ||
| ARG GROUP_ID | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
| ENV TZ=Europe/Copenhagen | ||
|
|
||
| RUN apt-get update \ | ||
| && \ | ||
| apt-get install -y \ | ||
| build-essential \ | ||
| libcurl4-gnutls-dev \ | ||
| libexpat1-dev \ | ||
| gettext \ | ||
| libz-dev \ | ||
| libssl-dev \ | ||
| asciidoc \ | ||
| xmlto \ | ||
| docbook-xsl \ | ||
| \ | ||
| tzdata \ | ||
| \ | ||
| nano \ | ||
| vim \ | ||
| && \ | ||
| ln -fs /usr/share/zoneinfo/$TZ /etc/localtime \ | ||
| && \ | ||
| dpkg-reconfigure --frontend noninteractive tzdata | ||
|
|
||
| RUN apt-get update && apt-get install -y autoconf | ||
|
|
||
| RUN addgroup -gid ${GROUP_ID} gituser | ||
| RUN adduser --disabled-password -u ${USER_ID} -gid ${GROUP_ID} gituser | ||
|
|
||
|
|
||
| COPY --chown=${USER_ID}:${GROUP_ID} ./git /home/gituser/git-src/ | ||
|
|
||
| USER ${USER_ID} | ||
|
|
||
| WORKDIR /home/gituser/git-src/ | ||
|
|
||
| RUN make configure | ||
| RUN ./configure --prefix=${HOME}/.local/ | ||
|
|
||
| #RUN make -j$(nproc) gitweb || make gitweb | ||
| #RUN make install-gitweb | ||
|
|
||
| #RUN make -j$(nproc) || make | ||
| #RUN make -j$(nproc) gitweb || make gitweb | ||
| #RUN make install-gitweb | ||
| RUN make -j$(nproc) NO_PERL=YesPlease install || make NO_PERL=YesPlease install | ||
| RUN make install | ||
|
|
||
| WORKDIR /home/gituser/git-src/t | ||
| RUN ./t2206-add-submodule-ignored.sh -v | ||
|
|
||
| RUN ls -la ${HOME}/.local/ | ||
| RUN ls -la ${HOME}/.local/bin | ||
| ENV PATH="/home/gituser/.local/bin:${PATH}" | ||
| RUN ls -l $HOME/.local/bin | ||
| RUN echo $PATH $HOME | ||
|
|
||
| RUN git --version | ||
| RUN which git | ||
|
|
||
| RUN git config --global user.email "[email protected]" | ||
| RUN git config --global user.name "Git User" | ||
|
|
||
| WORKDIR /home/gituser/git-src/t | ||
| RUN pwd && ls -la | ||
| RUN ./t2206-add-submodule-ignored.sh -v | ||
|
|
||
| WORKDIR /home/gituser/git-test/ | ||
|
|
||
| CMD [ "git" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "name": "Git Dev Container", | ||
| "build": { | ||
| "dockerfile": "Dockerfile", | ||
| "context": "", | ||
| "args": { | ||
| "user_id": "1001", | ||
| "group_id": "1001" | ||
| } | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "settings": { | ||
| "terminal.integrated.shell.linux": "/bin/bash" | ||
| } | ||
| } | ||
| }, | ||
| "remoteUser": "gituser", | ||
| "features": {}, | ||
| "mounts": [ | ||
| "source=${localWorkspaceFolder}/,target=/home/gitusers/git-src,type=bind,consistency=cached", | ||
| "source=${localWorkspaceFolder}/,target=/home/gitusers/git-test,type=bind,consistency=cached" | ||
| ], | ||
| "postCreateCommand": "echo" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the Git mailing list, Junio C Hamano wrote (reply to this):