-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Possibility to remove the gitname from the fragment file name #103
Comments
You want to omit the branch name, or the user name? And can you say more about why? Public information is public. |
It would be the user name - and yes, that's what I meant with that it's clearly public already, but having it in the file name makes it somewhat more visible. The reason why we want that is that it's somewhat bureaucracy... people are more hesitant especially in a "corporate" context to have their names show so dominantly. In our case we would wanna follow your idea of referring to the fragments as unreleased changes, but then there are immediately the names showing in that folder which might worry some.. Hope that makes sense a little Thanks for getting back so promptly! |
Sorry, why did you close this? |
I thought it might not be of interest, so didn't want to clog up the issues :) Can reopen though! |
@nedbat im also in need of the feature, cause my git name taken from my email username is |
i propose the addition of a |
This is now released as part of scriv 1.4.0. |
QQ: this needs to be individually enabled in every git user setting? Or could this also be enabled globally in the |
This would be for each user. I can re-open this since the new setting doesn't exactly address the original request. |
A related-but-not-the-same feature suggestion, but one that could potentially be addressed at the same time as this one: I'd like to be able to move the branch name to the front of the fragment file names, so tab-completion can more easily ignore the exact time the template fragment was created. Something along the lines of: [tool.scriv]
fragment_name_format = "{creator}_{branch}_{created}" The current default fragment name format would be equivalent to setting the name format to
[tool.scriv]
fragment_name_format = "{branch}_{created}" (or the other way around if you prefer the default behaviour of putting the creation time at the start so the fragment list is chronologically ordered) One downside of the "format string" approach is that it's hard to gracefully omit the branch name for uninteresting branches, so a sequence of field names that are joined by scriv to create the format string might be nicer: [tool.scriv]
fragment_name_fields = ["creator", "branch", "created"] [tool.scriv]
fragment_name_fields = ["creator", "created"] That way scriv could still omit the redundant field separators when the active branch is deemed irrelevant when naming the fragment. |
I could not find the setting in the docs - but is it possible to remove the gitname in the file name of the fragment.
There are many ways to see that name otherwise as its public, but this makes the name even more public :)
The text was updated successfully, but these errors were encountered: