Added advice for files which are >50 mb#2221
Added advice for files which are >50 mb#2221Arsh123344423 wants to merge 10 commits intogit:masterfrom
Conversation
Welcome to GitGitGadgetHi @Arsh123344423, and welcome to GitGitGadget, the GitHub App to send patch series to the Git mailing list from GitHub Pull Requests. Please make sure that either:
You can CC potential reviewers by adding a footer to the PR description with the following syntax: NOTE: DO NOT copy/paste your CC list from a previous GGG PR's description, Also, it is a good idea to review the commit messages one last time, as the Git project expects them in a quite specific form:
It is in general a good idea to await the automated test ("Checks") in this Pull Request before contributing the patches, e.g. to avoid trivial issues such as unportable code. Contributing the patchesBefore you can contribute the patches, your GitHub username needs to be added to the list of permitted users. Any already-permitted user can do that, by adding a comment to your PR of the form Both the person who commented An alternative is the channel Once on the list of permitted usernames, you can contribute the patches to the Git mailing list by adding a PR comment If you want to see what email(s) would be sent for a After you submit, GitGitGadget will respond with another comment that contains the link to the cover letter mail in the Git mailing list archive. Please make sure to monitor the discussion in that thread and to address comments and suggestions (while the comments and suggestions will be mirrored into the PR by GitGitGadget, you will still want to reply via mail). If you do not want to subscribe to the Git mailing list just to be able to respond to a mail, you can download the mbox from the Git mailing list archive (click the curl -g --user "<EMailAddress>:<Password>" \
--url "imaps://imap.gmail.com/INBOX" -T /path/to/raw.txtTo iterate on your change, i.e. send a revised patch or patch series, you will first want to (force-)push to the same branch. You probably also want to modify your Pull Request description (or title). It is a good idea to summarize the revision by adding something like this to the cover letter (read: by editing the first comment on the PR, i.e. the PR description): To send a new iteration, just add another PR comment with the contents: Need help?New contributors who want advice are encouraged to join git-mentoring@googlegroups.com, where volunteers who regularly contribute to Git are willing to answer newbie questions, give advice, or otherwise provide mentoring to interested contributors. You must join in order to post or view messages, but anyone can join. You may also be able to find help in real time in the developer IRC channel, |
|
Invalid author email in 8e61420: "74533805+Arsh123344423@users.noreply.github.com" |
|
/allow |
|
Error: User Arsh123344423 is not yet permitted to use GitGitGadget |
|
/allow |
|
User Arsh123344423 is now allowed to use GitGitGadget. WARNING: Arsh123344423 has no public email address set on GitHub; GitGitGadget needs an email address to Cc: you on your contribution, so that you receive any feedback on the Git mailing list. Go to https://github.com/settings/profile to make your preferred email public to let GitGitGadget know which email address to use. |
|
@Arsh123344423 did you see the CI failures? There is at least a missing prototype: Which means that the function either needs to be declared |
|
@dscho thank you so much for looking into my pr and giving me the access to allow , nevertheless I saw the issue and I am trying to fix it as it's my first contribution and micro project for GSOC it will be an absolute honor if you help me out to fix this issue |
|
Well, you will notice that the Since the function is only called inside advice.c, you are free to actually define it directly without a prior declaration. In that case, however, you have to mark the function such that it cannot be used outside of that file. That is what this Line 21 in 67ad421 parse_advise_color_slot() function as static, i.e. it can only be called in the same file, after it has been defined.
Once you understand this issue, it's very easy to fix it. I want to prevent you not understanding it and just making edits that I tell you because that's missing the point of the micro project. |
|
Invalid author email in 8e61420: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 2c7be81: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 8e61420: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 2c7be81: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 2c724c5: "74533805+Arsh123344423@users.noreply.github.com" |
2c724c5 to
cec015b
Compare
|
Invalid author email in 8e61420: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 2c7be81: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 8e61420: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 2c7be81: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 39c1ed5: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 8e61420: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 2c7be81: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 39c1ed5: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 643e808: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 8e61420: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 2c7be81: "74533805+Arsh123344423@users.noreply.github.com" |
|
Invalid author email in 39c1ed5: "74533805+Arsh123344423@users.noreply.github.com" |
|
There are issues in commit d2a3118:
|
|
There are issues in commit 5d57758:
|
|
There are issues in commit 596602b:
|
|
There are issues in commit 795c4ba:
|
|
There are issues in commit 852e8a6:
|
|
There are issues in commit 4740331:
|
|
There are issues in commit 79019d0:
|
|
There are issues in commit 30f98e6:
|
|
There are issues in commit ad88485:
|
|
There are issues in commit 0f70732:
|
Introduce a new function to advise users when they attempt to stage large files (>50MB). This function will display a warning message suggesting the use of Git LFS or adding the file to .gitignore. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
Make the function static to limit its scope to the advice.c file, following encapsulation best practices. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
Ensure advice.c ends with a newline character to comply with POSIX standards and Git coding guidelines. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
Call advise_on_large_file() from add_file_to_index() in read-cache.c to warn users when staging files larger than 50MB. This helps prevent accidentally committing large files to the repository. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
Correct the header file include to properly reference advice.h, resolving compilation errors. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
Fix the function declaration in advice.h to match the implementation in advice.c, resolving type mismatch errors. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
Clean up redundant header file includes in read-cache.c to avoid compilation warnings. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
Make advise_on_large_file a public function by removing the static keyword, allowing it to be called from other source files. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
Clean up trailing whitespace, ensure proper tab indentation, and add missing newlines to comply with Git project coding standards. All tests now pass successfully. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
Clean up trailing whitespace, ensure proper tab indentation, and add missing newlines to comply with Git project coding standards. fixed all test cases finally. All tests now pass successfully. Signed-off-by: Arsh Srivastava <arshsrivastava00@gmail.com>
0f70732 to
994265f
Compare
Well, you have 10 commits in this PR, for the price of one. You'll need to clean up the commit history. Easiest way: https://git-rebase.io/ |
|
And of course you'll want to reopen this PR, force-push, and for a single commit you don't need a cover letter (read: the PR description can stay empty). |
|
@dscho I will create another pr that will be cleaner and more concise as this one i don't know why but has 2490 changes which is ridiculous , mind my words I won't stop until I get my micro project accepted but this one is practically dead I believe , but if there is still a way for me to make this pr a reality I will |
|
I don't like seeing multiple PRs when one suffices. Same thing as seeing 10 commits when one would be better. |
|
@dscho okay so I will try to find a way to overcome these problems , in this pr only |
There's a "Reopen" button on the bottom, no? |
No description provided.