Click here to Skip to main content
14,392,424 members

Linux Programming

 
SuggestionAn interactive cheatsheet tool for the command-line Pin
denisidoro14-Dec-19 5:08
Memberdenisidoro14-Dec-19 5:08 
QuestionMessage Closed Pin
10-Dec-19 22:59
MemberMember 1468562910-Dec-19 22:59 
QuestionMessage Closed Pin
10-Dec-19 22:59
MemberMember 1468562910-Dec-19 22:59 
Questionbluetooth hci function fails to execute hci_read_class_of_dev Pin
Vaclav_2-Dec-19 9:27
MemberVaclav_2-Dec-19 9:27 
AnswerRe: bluetooth hci function fails to execute hci_read_class_of_dev Pin
Richard MacCutchan4-Dec-19 0:25
mveRichard MacCutchan4-Dec-19 0:25 
QuestionMessage Removed Pin
27-Nov-19 18:30
MemberVaclav_27-Nov-19 18:30 
QuestionGit pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w8-Nov-19 6:26
Memberarnold_w8-Nov-19 6:26 
AnswerRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
Afzaal Ahmad Zeeshan8-Nov-19 13:24
mvaAfzaal Ahmad Zeeshan8-Nov-19 13:24 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w8-Nov-19 22:56
Memberarnold_w8-Nov-19 22:56 
Afzaal Ahmad Zeeshan wrote:
Since you might be new to this, here are a few resources that can help you get started:
Git Hooks | Learn how to use pre-commit hooks, post-commit hooks, post-receive hooks, and more. | Matthew Hudson
Git - Git Hooks
GitHub - pre-commit/pre-commit-hooks: Some out-of-the-box hooks for pre-commit
Thank you. The hooks are already enabled and working and they are calling standard .bat-files as it is now. My plan was to write as much as possible in standard .bat-files, but I think a check like this is difficult to pass on to a .bat-file.
Afzaal Ahmad Zeeshan wrote:
Quote:
is not part of the selected files to be committed
What exactly do you mean by this? Does the file need to be added, modified or anyway altered in the commit, or just to make sure that it is not deleted?
I use TortoiseGit and when I click commit I get a list of all files with modifications. Next to each file name in the list there's a checkbox that I can mark the specific file for inclusion in the commit about to happen. So, the user must always check the checkbox next to GitCommitDateAndTime.cs. Now, you could argue that I could always programmatically click the checkbox as a convenience for the user, but I have seen that some of my colleagues use git from some kind of command line tool so this solution wouldn't work for them.

modified 9-Nov-19 5:28am.

GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w9-Nov-19 4:23
Memberarnold_w9-Nov-19 4:23 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
Richard MacCutchan9-Nov-19 4:38
mveRichard MacCutchan9-Nov-19 4:38 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w9-Nov-19 5:13
Memberarnold_w9-Nov-19 5:13 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
Richard MacCutchan9-Nov-19 5:33
mveRichard MacCutchan9-Nov-19 5:33 
GeneralRe: Git pre-commit hook in #!/bin/sh programming language that requires a file to part of all commits? Pin
arnold_w9-Nov-19 6:06
Memberarnold_w9-Nov-19 6:06 
QuestionBest languages for Linux Admins to learn? Pin
StampedePress24-Oct-19 7:12
MemberStampedePress24-Oct-19 7:12 
AnswerRe: Best languages for Linux Admins to learn? Pin
k505424-Oct-19 8:45
Memberk505424-Oct-19 8:45 
GeneralRe: Best languages for Linux Admins to learn? Pin
StampedePress24-Oct-19 10:29
MemberStampedePress24-Oct-19 10:29 
Generalwho is on first ? - programming GUI in Linux Pin
Vaclav_27-Sep-19 5:14
MemberVaclav_27-Sep-19 5:14 
GeneralRe: who is on first ? - programming GUI in Linux Pin
k505427-Sep-19 6:48
Memberk505427-Sep-19 6:48 
QuestionHow to find all assignments the values to variables,by '=' or by func or as ref value Pin
mamali1289-Aug-19 8:18
Membermamali1289-Aug-19 8:18 
GeneralRe: How to find all assignments the values to variables,by '=' or by func or as ref value Pin
Richard MacCutchan9-Aug-19 22:44
mveRichard MacCutchan9-Aug-19 22:44 
GeneralText Based Game in Bash - Help Wanted Pin
Lucas Whitaker7-Aug-19 7:08
MemberLucas Whitaker7-Aug-19 7:08 
GeneralRe: Text Based Game in Bash - Help Wanted Pin
Richard MacCutchan9-Aug-19 22:46
mveRichard MacCutchan9-Aug-19 22:46 
Questionhcitool.c which source to take seriously? Pin
Vaclav_12-Jul-19 5:34
MemberVaclav_12-Jul-19 5:34 
AnswerRe: hcitool.c which source to take seriously? Pin
Richard MacCutchan12-Jul-19 6:53
mveRichard MacCutchan12-Jul-19 6:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.