-
Notifications
You must be signed in to change notification settings - Fork 1
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
Function "cp_n_chown_n_chmod": Some things to improve #1
Conversation
… of using 'set -x'
Hi Ramon, Thanks a lot for your pull-request and for the explanations! I have a feeling that no matter how I like to continue working with mercurial, yes, I have to learn git more. Creating these repositories here on GitHub was the first step. As all my local repositories are in mercurial, and I'm still waiting a response for my hosting request on Heptapod, I've done so far all my commits here via web interface, and only some of them are the same as in my local mercurial... a mess. Now, for working on your pull-request, I'll have to create a local git repo. And it's good. It will be the second step. It will let me make commits here more consistent (not only via web interface), less mess... After that, maybe, I'll look at hggit. ...More to the point, I'm going to create a local git repo in order to merge (or not) your commits one-by-one, not all at once. |
Sure thing! It is your repository, so everything is up to you! :) The instructions, you have found, look weird. There is actually a command for this: https://mattstauffer.com/blog/how-to-merge-only-specific-commits-from-a-pull-request/ |
Well, I've been a little confused working with GitHub in command line for the first time... I've got conflicts, made force-updates... The first pancake. It will get easier :) In short, I merged include 'setuid', 'setgid' and 'sticky bit' with an additional commit of mine. That's not all, I'll continue. I wonder that merged commits, parts of the PR, don't get marked as merged. |
The final result is so: include 'setuid', 'setgid' and 'sticky bit' do not mix quotes, redirect errors to 'stderr' (file descriptor 2) check file mask at the 'check section', use verbose parameter instead… use verbose parameter use single quotes to emphasise variables correct check use a more secure regex, 'colons' and '..' would be fatal here Unfortunately, I had to re-commit most your commits by myself because otherwise there were conflicts due to that I merged some your commits partially (1) and to that I didn't merge some (2). Thank you again for this PR! Can I close it now? |
Hmmm, I see conflicts again here, on GitHub. It's strange, because my local copy does not have any conflict, git status shows nothing special, and I just pushed to origin master.... What did go wrong here? |
There were conflicts, due to In general, I deleted my adaptions and took yours. It also works in the other direction. I actually do not know any other method to solve a merge conflict. Before <<<<<<< master
Exiting 1.' >&2 # or >/dev/stderr
=======
Exiting 1.' >&2
>>>>>>> master After Exiting 1.' >&2 Before <<<<<<< master
exit_err_1 "Wrong __file_owners '${__file_owners}'"
fi
if [[ ! -z "${__file_mask}" || ! "${__file_mask}" =~ ^[0124]?[0-7][0-7][0-7]$ ]]; then
exit_err_1 "Wrong __file_mask '${__file_mask}'"
=======
exit_err_1 'Wrong __file_owners '"${__file_owners}"
fi
if [[ -z "${__file_mask}" || ! "${__file_mask}" =~ ^[0124]?[0-7][0-7][0-7]$ ]]; then
exit_err_1 'Wrong __file_mask '"${__file_mask}"
>>>>>>> master After exit_err_1 'Wrong __file_owners '"${__file_owners}"
fi
if [[ -z "${__file_mask}" || ! "${__file_mask}" =~ ^[0124]?[0-7][0-7][0-7]$ ]]; then
exit_err_1 'Wrong __file_mask '"${__file_mask}" |
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.
Oh, I forgot to submit these two reviews, when I was creating the pull-request in the night. :D Take a look. I guess, you can also resolve them.
I meant, you could emphasise the variable in quotes like this: $ some_variable="/tmp/something"
$ echo "Something happened at '${some_variable}'"
Something happened at '/tmp/something'
|
Aaah, I got it finally, thanks :) I will think about it, it's interesting. |
Alright! I guess, we can close this now. :) |
Hi Alexey,
this is your first pull-request! \o/
Below, I explain to you what I did to create this pull-request:
git clone [email protected]:keks24/dotfiles-1.git
compare across forks
: https://github.com/halcon74/dotfiles/compare):This is just a suggestion. You as an owner can decide, to adapt it or not
I also left some in-line comments, which you might resolve.