kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Trouble in making an commit .
@ 2015-06-16 18:36 Santhosh Pai
  2015-06-16 18:53 ` Sébastien Hinderer
  0 siblings, 1 reply; 9+ messages in thread
From: Santhosh Pai @ 2015-06-16 18:36 UTC (permalink / raw)
  To: kernelnewbies

Hello Team,
I'm trying to make a commit to a checkpatch fix , and i have followed the instructions in the first patch tutorial but i'm not able to commit .
Following were the steps done .
1)Made changes to the file 

2)Run git diff command got the below output 

diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index 146ab00..02a41bc 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -2611,7 +2611,7 @@ static int comedi_open(struct inode *inode, struct file *file)
??????? }
??????? if (dev->attached && dev->use_count == 0) {
??????????????? if (!try_module_get(dev->driver->module)) {
-?????????????????????? rc = -ENOSYS;
+?????????????????????? rc = -ENODATA;
??????????????????????? goto out;
??????????????? }
??????????????? if (dev->open) {
3) when i run git commit -a? i get the below message and the same goes for git commit -s -v 

bash-4.2$ git commit -a
usage: git diff-index [-m] [--cached] [<common diff options>] <tree-ish> [<path>...]
common diff options:
? -z??????????? output diff-raw with lines terminated with NUL.
? -p??????????? output patch format.
? -u??????????? synonym for -p.
? --patch-with-raw
??????????????? output both a patch and the diff-raw format.
? --stat??????? show diffstat instead of patch.
? --numstat???? show numeric diffstat instead of patch.
? --patch-with-stat
??????????????? output a patch and prepend its diffstat.
? --name-only?? show only names of changed files.
? --name-status show names and status of changed files.
? --full-index? show full object name on index lines.
? --abbrev=<n>? abbreviate object names in diff-tree header and diff-raw.
? -R??????????? swap input file pairs.
? -B??????????? detect complete rewrites.
? -M??????????? detect renames.
? -C??????????? detect copies.
? --find-copies-harder
??????????????? try unchanged files as candidate for copy detection.
? -l<n>???????? limit rename attempts up to <n> paths.
? -O<file>????? reorder diffs according to the <file>.
? -S<string>??? find filepair whose only one side contains the string.
? --pickaxe-all
??????????????? show all files diff when -S is used and hit is found.
? -a? --text??? treat all files as text.

i'm not able to commit the changes ,let us know what could be the problem . Below is the details of the git version 

git version 1.7.11.7OS : Fedora 

Regards,
Santosh Pai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150616/36320bbd/attachment.html 

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-06-18 17:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-16 18:36 Trouble in making an commit Santhosh Pai
2015-06-16 18:53 ` Sébastien Hinderer
2015-06-17 18:01   ` Santhosh Pai
2015-06-17 18:22     ` Sébastien Hinderer
2015-06-18  4:50       ` Sudip Mukherjee
2015-06-18  7:54     ` Kristof Provost
2015-06-18  8:14       ` Sébastien Hinderer
2015-06-18  8:18         ` Kristof Provost
2015-06-18 17:32           ` Santhosh Pai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).