This file contains hidden or 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
// | |
// Copyright 2014, Desert Software Solutions Inc. | |
// MultiStreamWriter.cs: https://gist.github.com/rostreim/9441193 | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// |
This file contains hidden or 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
// | |
// Copyright 2013, Desert Software Solutions Inc. | |
// Database.cs: https://gist.github.com/rostreim/9453953 | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// |
This file contains hidden or 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
// | |
// Copyright 2014, Desert Software Solutions Inc. | |
// CommandShellControl.cs: https://gist.github.com/rostreim/10558496 | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// |
This file contains hidden or 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
// | |
// Copyright 2014, Desert Software Solutions Inc. | |
// LogWriter.cs: https://gist.github.com/rostreim/9461bb88b097f36b34ce | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// |
This file contains hidden or 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
/// <summary> | |
/// Returns the result Table of the specified SQL. | |
/// </summary> | |
/// <param name="sql">The SQL.</param> | |
/// <param name="parameters">The parameters.</param> | |
/// <param name="commandType">Type of the command.</param> | |
/// <returns></returns> | |
internal DataTable Table(string sql, dynamic parameters = null, CommandType? commandType = null) { | |
DataTable table = new DataTable(); |
This file contains hidden or 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
// | |
// Copyright 2015, Desert Software Solutions Inc. | |
// ServiceKit.cs: https://gist.github.com/rostreim/47e63f01fbaf8556b847 | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// |
This file contains hidden or 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
// | |
// Copyright 2014, Desert Software Solutions Inc. | |
// XElementExtensions.cs: https://gist.github.com/rostreim/6fc46cba62effd24d2f6 | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// |
This file contains hidden or 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
[alias] | |
# lga = log --graph --oneline --all --decorate | |
# lg = log --graph --all --pretty=format:'%C(bold)%h%Creset -%C(auto)%d%Creset %s %C(green dim)(%cr)%Creset %C(ul)<%an>' | |
# log adog | |
lga = log --all --decorate --oneline --graph | |
# excluded for now (commit subjects only) lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(green)%h%C(reset)%C(auto)%d%C(reset) %C(cyan)<%an>%C(reset) %C(green dim)(%ar)%C(reset)%n %C(white)%s%C(reset)%n' --all | |
# log adog but with time, author, and full commit body | |
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(green)%h%C(reset)%C(auto)%d%C(reset) %C(cyan)<%an>%C(reset) %C(green dim)(%ar)%C(reset)%n %C(white)%s%C(reset)%n%C(dim white)%b%C(reset)' --all | |
# deprecated: lgd = log --graph --abbrev-commit --decorate --format=format:'%C(green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(res |