-
Notifications
You must be signed in to change notification settings - Fork 531
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
Reduce size of large commit messages #21
Comments
If the option accepts perl-compatible regex, then this is possible and simple: --replace-message-text 'qr{^.{1000000,1000000000}$}s' the above will match msg lines that are > 1Mb and < 1Gb in size. Thanks Richard On Mon, Jul 15, 2013 at 12:29:33AM -0700, Roberto Tyley wrote:
|
The BFG uses regex expressions provided by the Java SDK, which are quite extensive: http://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html I'll hopefully get some time in the next 24 hours to look at this. |
Hi Roberto,
nice if bfg-repo-cleaner can handle huge msg size. Thanks Richard On Tue, Jul 16, 2013 at 02:09:46AM -0700, Roberto Tyley wrote:
|
...need to add test against tag messages
The most unusual case to be handled is when... the only thing that needs to be cleaned in a repo is the annotated tag message text itself.
...need to add test against tag messages
The most unusual case to be handled is when... the only thing that needs to be cleaned in a repo is the annotated tag message text itself.
The most unusual case to be handled is when... the only thing that needs to be cleaned in a repo is the annotated tag message text itself. Fixing -rt switch to -rmt
Still some scruff in here... Chunky refactor unifying the cleaning of commit/tag message text. The most unusual case to be handled is when the /only/ thing that needs to be cleaned in a repo is annotated tag message text.
Still some scruff in here... Chunky refactor unifying the cleaning of commit/tag message text. The most unusual case to be handled is when the /only/ thing that needs to be cleaned in a repo is annotated tag message text.
Still some scruff in here... Chunky refactor unifying the cleaning of commit/tag message text. The most unusual case to be handled is when the /only/ thing that needs to be cleaned in a repo is annotated tag message text.
@chenri mentions in #20 that his repo contains a very large commit message:
It would be nice if The BFG had the ability to somehow reduce the size of large commit messages - but how exactly would it do it? Some options:
--replace-message-text
option, similar to--replace-text
?? This would work for a repeated value on a single line, so long as the line wasn't too long, but how would it work on a commit message with 1 million lines, each distinct?The text was updated successfully, but these errors were encountered: