-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: consistent line endings in log messages (#145)
- Loading branch information
1 parent
0b03d5f
commit 7df8477
Showing
10 changed files
with
139 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
# Ignore everything and selectively allow files | ||
* | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
# Allow project files | ||
!.deepsource.toml | ||
!.github/**/* | ||
!.gitignore | ||
!.golangci.yaml | ||
!.goreleaser.yaml | ||
!CODEOWNERS | ||
!CODE_OF_CONDUCT.md | ||
!htmltest.yml | ||
!LICENSE | ||
!mkdocs.yml | ||
!README.md | ||
!Taskfile.yaml | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
# Allow Nix files | ||
!.envrc | ||
!flake.nix | ||
!flake.lock | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
# Allow Go files | ||
!*.go | ||
!go.sum | ||
!go.mod | ||
|
||
# Mkdocs | ||
.cache/ | ||
site/ | ||
|
||
# VSCode | ||
.vscode/ | ||
# Recurse through sub-directories applying the same patterns | ||
!*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
description = "Write fluent interactions to Git. Programmatically crafting git commands becomes a breeze!"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
in | ||
with pkgs; | ||
{ | ||
devShells.default = mkShell { | ||
buildInputs = [ | ||
git | ||
go | ||
gofumpt | ||
golangci-lint | ||
go-task | ||
]; | ||
}; | ||
} | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package git | ||
|
||
import "strings" | ||
|
||
func cleanLineEndings(log string) string { | ||
return strings.ReplaceAll(log, "\r\n", "\n") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//go:build windows | ||
// +build windows | ||
|
||
package git | ||
|
||
func cleanLineEndings(log string) string { | ||
// Mixed line endings don't appear within Windows | ||
return log | ||
} |