Re: Git commands

2010-07-26 Thread Matej Urban
On Sat, Jul 24, 2010 at 11:26 PM, Wouter Bolsterlee wbols...@gnome.org wrote:
 Op zaterdag 24-07-2010 om 20:54 uur [tijdzone +0200], schreef Matej
 Urban:
 On Fri, Jul 23, 2010 at 9:54 PM, Wouter Bolsterlee wbols...@gnome.org 
 wrote:
  Perhaps git writes to stderr instead? Try this:
 
   $ git pull 21 | tail -n1
 
  ...instead.

 I have no idea what 21 stands for, but it works!
 I successfully combined it with egrep to do the job.

 21 means that the stderr (file descriptor 2) gets redirected () to
 stdout (file descriptor 1), so that subsequent programs (e.g. grep)
 actually see the input when your shell pipes git's stdout into grep's
 stdin.


Well, I'm more on the concrete side of understanding this :)

Thanks,

Matej

 Really big thanks!

 You're welcome.

    — Wouter

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-07-24 Thread Matej Urban
Hello,

On Fri, Jul 23, 2010 at 9:54 PM, Wouter Bolsterlee wbols...@gnome.org wrote:
 Op woensdag 21-07-2010 om 21:40 uur [tijdzone +0200], schreef Matej
 Urban:
 is it possible to grep the git commands? OR HOW do I output only the
 last line of git command.

 I want git pull to only output the last line usually something like
 - X files changed, XXX insertions(+), XXX deletions(-)
 - Already up-to-date.

 or when using git push only
 - 45604564 master - master
 ...

 I tried various variations of git pull | tail -1

 Perhaps git writes to stderr instead? Try this:

  $ git pull 21 | tail -n1

 ...instead.

I have no idea what 21 stands for, but it works!
I successfully combined it with egrep to do the job.

Really big thanks!
M!



    — Wouter

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-07-24 Thread Christopher Roy Bratusek
21 means to both redirect stderr (2) and stdin (1)
for more infos check your shell's manpage (eg man bash)

 I have no idea what 21 stands for, but it works!
 I successfully combined it with egrep to do the job.

Regards
Chris
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-07-24 Thread Wouter Bolsterlee
Op zaterdag 24-07-2010 om 20:54 uur [tijdzone +0200], schreef Matej
Urban:
 On Fri, Jul 23, 2010 at 9:54 PM, Wouter Bolsterlee wbols...@gnome.org wrote:
  Perhaps git writes to stderr instead? Try this:
 
   $ git pull 21 | tail -n1
 
  ...instead.
 
 I have no idea what 21 stands for, but it works!
 I successfully combined it with egrep to do the job.

21 means that the stderr (file descriptor 2) gets redirected () to
stdout (file descriptor 1), so that subsequent programs (e.g. grep)
actually see the input when your shell pipes git's stdout into grep's
stdin.

 Really big thanks!

You're welcome.

— Wouter


signature.asc
Description: This is a digitally signed message part
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-07-23 Thread Wouter Bolsterlee
Op woensdag 21-07-2010 om 21:40 uur [tijdzone +0200], schreef Matej
Urban:
is it possible to grep the git commands? OR HOW do I output only the
 last line of git command.
 
 I want git pull to only output the last line usually something like
 - X files changed, XXX insertions(+), XXX deletions(-)
 - Already up-to-date.
 
 or when using git push only
 - 45604564 master - master
 ...
 
 I tried various variations of git pull | tail -1
 
Perhaps git writes to stderr instead? Try this:

  $ git pull 21 | tail -n1

...instead.

— Wouter


signature.asc
Description: This is a digitally signed message part
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-07-21 Thread Matej Urban
Hello,

is it possible to grep the git commands? OR HOW do I output only the
last line of git command.

I want git pull to only output the last line usually something like
- X files changed, XXX insertions(+), XXX deletions(-)
- Already up-to-date.

or when using git push only
- 45604564 master - master
...

I tried various variations of git pull | tail -1

I also tried to grep the git commit to output only the line about who
the author is ...
Nothing.

Matej
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-06-21 Thread Claude Paroz
Le dimanche 20 juin 2010 à 21:28 +0200, Matej Urban a écrit :
 Hello,
 I push translations for a few people and have 2 questions ...
 
 1. I'd like to make my life a bit easier with aliases, but can not
 figure out how to make correct alias of a commit message:
 
 git config --global alias.name commit sl.po -m Updated translation
 --author Name SecondName name.secondn...@email.com
 
 I guess the problems are not escaped  ?
 
 
 2. If I understand correctly then executing $git name will do upper
 git commit sl.po -m Updated translation --author Name SecondName
 name.secondn...@email.com, right? So, how would I need to write my
 alias to execute git commit name? to execute that command?
 

Use backslash to escape quotes.
E.g.:
git config --global alias.commitsl commit sl.po -m \Updated Slovenian
translation\ --author \Name SecondName name.secondn...@email.com\

You can also directly edit the [alias] section of your ~/.gitconfig
file.

HTH,

Claude

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-06-21 Thread Matej Urban
Thank you, it works.
M!
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-06-20 Thread Matej Urban
Hello,
I push translations for a few people and have 2 questions ...

1. I'd like to make my life a bit easier with aliases, but can not figure
out how to make correct alias of a commit message:

git config --global alias.name commit sl.po -m Updated translation
--author Name SecondName name.secondn...@email.com

I guess the problems are not escaped  ?


2. If I understand correctly then executing $git name will do upper git
commit sl.po -m Updated translation --author Name SecondName 
name.secondn...@email.com, right? So, how would I need to write my alias
to execute git commit name? to execute that command?

Thanks,

Matej
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-03-05 Thread Mario Blättermann
Hi Matej,

Am Freitag, den 05.03.2010, 15:44 +0100 schrieb Matej Urbančič:
 Hello,
 
 I committed to master some figures that return error: Figures should
 not be copied when identical to original.
 http://l10n.gnome.org/vertimus/f-spot/master/docs/sl
 
 My mistake.
 
 I deleted them from local folder, but now I can not figure out the
 way, to get rid of them from master branch. I tried every command I
 found online without success.
 
 So, how do I push deleted items?
 
You don't have to delete such objects by dragging them away from
Nautilus. Just type git rm object_name instead, and the file
disappears from the file view anyway. Perhaps you have to put the real
file back before. After using the git rm command, the removed files are
deleted automatically from the Git tree. However, they remain in the
history, but they are not considered for tags (and tarballs).

Cheers,
Mario

___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Git commands

2010-03-05 Thread Matej Urban
I have no idea what I did, but now it is correct.
Funny ...

M!
___
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n