-
Notifications
You must be signed in to change notification settings - Fork 620
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
main: use actual line number in combined pattern fields #2705
main: use actual line number in combined pattern fields #2705
Conversation
See universal-ctags#2691. This makes it straightforward for client tools to "search the nearest occurence of pattern around the line", making good use of both the line number and search pattern.
Though I cannot find any strong reason, I would like to avoid a special character within the name of excmd: how about naming |
Done. |
It seems that you forgot to run |
@AmaiKinono, when merging, please use the "Squash and merge" method for this change. |
OK. Do we have a criteria of when to use which kind of merging? |
Codecov Report
@@ Coverage Diff @@
## master #2705 +/- ##
=======================================
Coverage 86.99% 86.99%
=======================================
Files 185 185
Lines 39440 39441 +1
=======================================
+ Hits 34309 34310 +1
Misses 5131 5131
Continue to review full report at Codecov.
|
About the difference between "Create and merge" or "Rebase and merge", I have no word. I would like to you make a pull request only with semantically meaningful commits. /* I cannot good word(s) for this. */ Though I requested updating, 6649d2b semantically meaningful commit. When merging I would like you to unify acf5e2e and 6649d2b into one commit. About a876022, I wonder how we should do. If you regard the updating of the man page as a separate work, you can keep a876022 as a separate commit from the unification commit of acf5e2e and 6649d2. HOWEVER, when keeping a876022 as a separate commit, I would like you to update the commit log. "fixup: make manpage" is not good. This should be something like "docs(man): update the description for --excmd=combine for v2 pattern". "squashing" tasks can be done just before merging. The very basic assumption is that one commit does one thing. This policy makes reviewing easier. It also makes rearranging commits and resolving conflicts when rebasing easier. See #2707 as examples. I guess you already know about much of what I wrote here. |
I didn't know these before. Thanks for the tip! I didn't use
Indeed. Actually I didn't put my question clear. I know we want these changes to go into a single commit, and it can only be done by "squash and merge" through the GitHub web UI. But using the command line, we could rearrange this branch first, then merge; or we could interactively rebase master against this branch. The difference is whether:
I use the second style in my projects, but I don't know which is preferred by u-ctags when the change is small. That's my question.
That does happen when people work together. You are helping me know how are things done in this repo, and that increases the possibility of me trying to work more/deeper on u-ctags ;) |
I don't care either way. Maybe there are merits and demerits. But I don't know them. |
See #2691. This makes it straightforward for client tools to "search the nearest occurence of pattern around the line", making good use of both the line number and search pattern.
I'll update #2698 once this is merged.